Enum tokio_util::codec::lines_codec::LinesCodecError
source · pub enum LinesCodecError {
MaxLineLengthExceeded,
Io(Error),
}
Expand description
An error occurred while encoding or decoding a line.
Variants§
Trait Implementations§
source§impl Debug for LinesCodecError
impl Debug for LinesCodecError
source§impl Display for LinesCodecError
impl Display for LinesCodecError
source§impl Error for LinesCodecError
impl Error for LinesCodecError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for LinesCodecError
impl From<Error> for LinesCodecError
source§fn from(e: Error) -> LinesCodecError
fn from(e: Error) -> LinesCodecError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LinesCodecError
impl !RefUnwindSafe for LinesCodecError
impl Send for LinesCodecError
impl Sync for LinesCodecError
impl Unpin for LinesCodecError
impl !UnwindSafe for LinesCodecError
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