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> Freeze for RecvError<U>
impl<U> !RefUnwindSafe for RecvError<U>
impl<U> Send for RecvError<U>
impl<U> Sync for RecvError<U>
impl<U> Unpin for RecvError<U>
impl<U> !UnwindSafe for RecvError<U>
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