pub enum RecvError<U: Decoder> {
KeepAlive,
WriteBackpressure,
Decoder(U::Error),
PeerGone(Option<Error>),
}Expand description
Errors that can occur while receiving data.
Variants§
KeepAlive
A keep-alive timeout occurred.
WriteBackpressure
Write backpressure is currently active.
Decoder(U::Error)
Failed to decode an incoming frame.
PeerGone(Option<Error>)
The peer has 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> UnsafeUnpin 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