pub enum Disconnect<T, R> {
Closed,
Dropped,
Timeout,
Timer(TimerError),
Sink(T),
Stream(R),
}Expand description
Possible causes for a disconnection.
Variants§
Closed
Closed with Client::close or similar.
Dropped
The Sink or Stream dropped.
Timeout
Closed 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§
Source§impl<T: Clone, R: Clone> Clone for Disconnect<T, R>
impl<T: Clone, R: Clone> Clone for Disconnect<T, R>
Source§fn clone(&self) -> Disconnect<T, R>
fn clone(&self) -> Disconnect<T, R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Eq, R: Eq> Eq for Disconnect<T, R>
impl<T, R> StructuralPartialEq for Disconnect<T, R>
Auto Trait Implementations§
impl<T, R> Freeze for Disconnect<T, R>
impl<T, R> RefUnwindSafe for Disconnect<T, R>where
T: RefUnwindSafe,
R: RefUnwindSafe,
impl<T, R> Send for Disconnect<T, R>
impl<T, R> Sync for Disconnect<T, R>
impl<T, R> Unpin for Disconnect<T, R>
impl<T, R> UnwindSafe for Disconnect<T, R>where
T: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more