[][src]Enum zelda::Event

pub enum Event {
    Connected(SocketAddr),
    Received {
        address: SocketAddr,
        payload: Vec<u8>,
        rtt: Option<Duration>,
        rtt_offset: Option<Duration>,
    },
    Disconnected(SocketAddr),
}

Variants

Connected(SocketAddr)
Received

Received a payload on the specified connection.

Fields of Received

address: SocketAddrpayload: Vec<u8>rtt: Option<Duration>

The estimated RTT so far if it has been calculated.

rtt_offset: Option<Duration>

The time in milliseconds the other side of the connection waited before sending the RTT-acknowledgement.

Disconnected(SocketAddr)

Auto Trait Implementations

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

impl RefUnwindSafe for Event

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Erased for T