Enum message_io::node::StoredNetEvent [−][src]
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
Accepted(Endpoint, ResourceId)
Tuple Fields of Accepted
0: Endpoint
1: ResourceId
Disconnected(Endpoint)
Tuple Fields of Disconnected
0: Endpoint
Implementations
Trait Implementations
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
Mutably borrows from an owned value. Read more