Enum LinesCodecError
pub enum LinesCodecError
An error occurred while encoding or decoding a line.
Variants
-
MaxLineLengthExceeded The maximum line length was exceeded.
-
Io(Error) An IO error occurred.
Trait Implementations
impl Debug for LinesCodecError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for LinesCodecError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for LinesCodecError
impl From<Error> for LinesCodecError
fn from(e: Error) -> LinesCodecError
Auto Trait Implementations
impl !RefUnwindSafe for LinesCodecError
impl !UnwindSafe for LinesCodecError
impl Freeze for LinesCodecError
impl Send for LinesCodecError
impl Sync for LinesCodecError
impl Unpin for LinesCodecError
impl UnsafeUnpin for LinesCodecError
Blanket Implementations
impl<T> Any for LinesCodecError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for LinesCodecError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for LinesCodecError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for LinesCodecError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for LinesCodecError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for LinesCodecError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for LinesCodecError
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for LinesCodecError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>