pub enum RecvError<U: Decoder> {
Timeout,
WriteBackpressure,
Decoder(U::Error),
PeerGone(Option<Error>),
}Expand description
Errors that can occur while receiving data.
Variants§
Timeout
The dispatcher timer has expired.
WriteBackpressure
Write backpressure is currently active.
Decoder(U::Error)
Failed to decode an incoming frame.
PeerGone(Option<Error>)
The connection is no longer usable.
Reported once the connection can no longer dispatch frames, whether
because transport shutdown has begun, the peer disconnected, an error
occurred, or shutdown was started locally with
IoRef::close or
IoRef::terminate. The transport backend
may still be finishing teardown.
Carries the connection error, which may originate from the transport,
a filter, or shutdown. None means no error was recorded.
Trait Implementations§
Auto Trait Implementations§
impl<U> !RefUnwindSafe for RecvError<U>
impl<U> !UnwindSafe for RecvError<U>
impl<U> Freeze 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>
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