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§
Trait Implementations§
Source§impl Clone for StoredNetEvent
impl Clone for StoredNetEvent
Source§fn clone(&self) -> StoredNetEvent
fn clone(&self) -> StoredNetEvent
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 StoredNetEvent
impl Debug for StoredNetEvent
Auto Trait Implementations§
impl Freeze for StoredNetEvent
impl RefUnwindSafe for StoredNetEvent
impl Send for StoredNetEvent
impl Sync for StoredNetEvent
impl Unpin for StoredNetEvent
impl UnwindSafe for StoredNetEvent
Blanket Implementations§
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