[][src]Enum reliudp::SocketEvent

pub enum SocketEvent {
    Data(Box<[u8]>),
    Connected,
    Aborted,
    Ended,
    Timeout,
}

Represents an event of the Socket.

They fall in mostly 2 categories: meta events, and data events.

Variants

Data(Box<[u8]>)

Data sent by the remote, re-assembled

Connected

Represents when the handshake with the other side was done successfully

Aborted

Connection was aborted unexpectedly by the other end (not the same as Timeout or Ended)

Ended

Connection was ended peacefully by the other end

Timeout

We haven't got any packet coming from the other for a certain amount of time

Trait Implementations

impl Debug for SocketEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.