[−][src]Enum message_io::network::NetEvent
Input network events.
Variants
Message(Endpoint, InMessage)
Input message received by the network.
AddedEndpoint(Endpoint)
New endpoint added to a listener. It will be sent when a new connection was accepted by the listener. This event will be sent only in TCP.
RemovedEndpoint(Endpoint)
A connection lost event.
This event is only dispatched when a connection is lost. Call to remove_resource()
will not generate the event.
After this event, the resource is considered removed.
A Message event will never be generated after this event.
This event will be sent only in TCP. Because UDP is not connection oriented, the event can no be detected.
Trait Implementations
impl<InMessage: Debug> Debug for NetEvent<InMessage> where
InMessage: for<'b> Deserialize<'b> + Send + 'static,
[src]
InMessage: for<'b> Deserialize<'b> + Send + 'static,
Auto Trait Implementations
impl<InMessage> RefUnwindSafe for NetEvent<InMessage> where
InMessage: RefUnwindSafe,
InMessage: RefUnwindSafe,
impl<InMessage> Send for NetEvent<InMessage>
impl<InMessage> Sync for NetEvent<InMessage> where
InMessage: Sync,
InMessage: Sync,
impl<InMessage> Unpin for NetEvent<InMessage> where
InMessage: Unpin,
InMessage: Unpin,
impl<InMessage> UnwindSafe for NetEvent<InMessage> where
InMessage: UnwindSafe,
InMessage: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,