pub enum RecvError<U: Decoder> {
KeepAlive,
WriteBackpressure,
Stop,
Decoder(U::Error),
PeerGone(Option<Error>),
}Expand description
Recv error
Variants
KeepAlive
Keep-alive timeout occured
WriteBackpressure
Write backpressure is enabled
Stop
Stop io stream handling
Decoder(U::Error)
Unrecoverable frame decoding errors
PeerGone(Option<Error>)
Peer is disconnected
Trait Implementations
Auto Trait Implementations
impl<U> RefUnwindSafe for RecvError<U> where
<U as Decoder>::Error: RefUnwindSafe,
impl<U> Send for RecvError<U> where
<U as Decoder>::Error: Send,
impl<U> Sync for RecvError<U> where
<U as Decoder>::Error: Sync,
impl<U> Unpin for RecvError<U> where
<U as Decoder>::Error: Unpin,
impl<U> UnwindSafe for RecvError<U> where
<U as Decoder>::Error: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more