[−][src]Enum message_io::network::NetEvent
Input network events.
Variants
Message(InMessage, Endpoint)
Input message received by the network.
AddedEndpoint(Endpoint, SocketAddr)
New endpoint added to a listener. In TCP it will be sent when a new connection was accepted by the listener. IN UDP will be sent when the socket send data by first time, before the Message event.
RemovedEndpoint(Endpoint)
A connection lost event.
This event is only dispatched when a connection is lost, remove_endpoint()
not generate the event.
This event will be sent only in TCP. Because UDP is not connection oriented, this event can no be detected
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>,