Enum message_io::node::StoredNetEvent
source · [−]pub enum StoredNetEvent {
Connected(Endpoint, bool),
Accepted(Endpoint, ResourceId),
Message(Endpoint, Vec<u8>),
Disconnected(Endpoint),
}
Expand description
Analogous to NetEvent
but with static lifetime (without reference the data).
This kind of event is dispatched by NodeListener::to_event_queue()
and can be easily stored in any container.
Variants
Connected(Endpoint, bool)
Accepted(Endpoint, ResourceId)
Message(Endpoint, Vec<u8>)
Disconnected(Endpoint)
Implementations
sourceimpl StoredNetEvent
impl StoredNetEvent
Trait Implementations
sourceimpl Clone for StoredNetEvent
impl Clone for StoredNetEvent
sourcefn clone(&self) -> StoredNetEvent
fn clone(&self) -> StoredNetEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StoredNetEvent
impl Debug for StoredNetEvent
Auto Trait Implementations
impl RefUnwindSafe for StoredNetEvent
impl Send for StoredNetEvent
impl Sync for StoredNetEvent
impl Unpin for StoredNetEvent
impl UnwindSafe for StoredNetEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more