pub enum ProtocolEvent {
Message(Vec<u8>),
Shutdown,
}
Expand description
Protocol event
Variants§
Message(Vec<u8>)
Message event, contains a vector of bytes.
Shutdown
Shutdown event signals the protocol to gracefully shut down.
Trait Implementations§
Source§impl Clone for ProtocolEvent
impl Clone for ProtocolEvent
Source§fn clone(&self) -> ProtocolEvent
fn clone(&self) -> ProtocolEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProtocolEvent
impl Debug for ProtocolEvent
Source§impl EventValue for ProtocolEvent
impl EventValue for ProtocolEvent
Auto Trait Implementations§
impl Freeze for ProtocolEvent
impl RefUnwindSafe for ProtocolEvent
impl Send for ProtocolEvent
impl Sync for ProtocolEvent
impl Unpin for ProtocolEvent
impl UnwindSafe for ProtocolEvent
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more