Enum tokio_util::codec::LinesCodecError [−][src]
pub enum LinesCodecError { MaxLineLengthExceeded, Io(Error), }
This is supported on crate feature
codec
only.Expand description
An error occured while encoding or decoding a line.
Variants
Expand description
The maximum line length was exceeded.
Io(Error)
Expand description
An IO error occured.
Trait Implementations
impl Debug for LinesCodecError
[src]
impl Debug for LinesCodecError
[src]impl Display for LinesCodecError
[src]
impl Display for LinesCodecError
[src]impl Error for LinesCodecError
[src]
impl Error for LinesCodecError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<Error> for LinesCodecError
[src]
impl From<Error> for LinesCodecError
[src]fn from(e: Error) -> LinesCodecError
[src]
fn from(e: Error) -> LinesCodecError
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for LinesCodecError
impl Send for LinesCodecError
impl Sync for LinesCodecError
impl Unpin for LinesCodecError
impl !UnwindSafe for LinesCodecError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more