pub enum NonblockingInStreamError {
Lagged(usize),
StreamPoll(Error),
Codec(Error),
}
Expand description
Err variant returned by NonblockingInStream
Variants§
Lagged(usize)
Client lagged and missed some messages. Stream can still be read.
StreamPoll(Error)
Polling the input stream failed
Codec(Error)
Codec error (see tokio_serde::formats codecs)
Trait Implementations§
Source§impl Debug for NonblockingInStreamError
impl Debug for NonblockingInStreamError
Source§impl Display for NonblockingInStreamError
impl Display for NonblockingInStreamError
Source§impl Error for NonblockingInStreamError
impl Error for NonblockingInStreamError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<Error> for NonblockingInStreamError
impl From<Error> for NonblockingInStreamError
Source§impl From<NonblockingInStreamError> for Error
impl From<NonblockingInStreamError> for Error
Source§fn from(err: NonblockingInStreamError) -> Self
fn from(err: NonblockingInStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NonblockingInStreamError
impl !RefUnwindSafe for NonblockingInStreamError
impl Send for NonblockingInStreamError
impl Sync for NonblockingInStreamError
impl Unpin for NonblockingInStreamError
impl !UnwindSafe for NonblockingInStreamError
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