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
ClosedClosed with Client::close or similar.
DroppedThe Sink or Stream dropped.
TimeoutClosed because of a timeout strategy.
Timer(TimerError)Error in a tokio_timer::Timer being used for timeout.
Sink(T)Error in the client's Sink.
Stream(R)Error in the client's Stream.
Trait Implementations
impl<T: Clone, R: Clone> Clone for Disconnect<T, R>[src]
fn clone(&self) -> Disconnect<T, R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<T: Debug, R: Debug> Debug for Disconnect<T, R>[src]
impl<T: PartialEq, R: PartialEq> PartialEq for Disconnect<T, R>[src]
fn eq(&self, __arg_0: &Disconnect<T, R>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Disconnect<T, R>) -> bool
This method tests for !=.