Enum comms::client::Disconnect [] [src]

pub enum Disconnect<T, R> {
    Closed,
    Dropped,
    Timeout,
    Timer(TimerError),
    Sink(T),
    Stream(R),
}

Possible causes for a disconnection.

Variants

Closed with Client::close or similar.

The Sink or Stream dropped.

Closed because of a timeout strategy.

Error in a tokio_timer::Timer being used for timeout.

Error in the client's Sink.

Error in the client's Stream.

Trait Implementations

impl<T: Clone, R: Clone> Clone for Disconnect<T, R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug, R: Debug> Debug for Disconnect<T, R>
[src]

Formats the value using the given formatter.

impl<T: PartialEq, R: PartialEq> PartialEq for Disconnect<T, R>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq, R: Eq> Eq for Disconnect<T, R>
[src]