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§
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 more