pub enum AsciiReadError {
Io(Error),
Ascii(AsAsciiStrError),
}
Expand description
Error returned when reading from a type that implements AsciiBufRead
. This may be
an I/O error or an error when the sequence of u8
are not all ASCII.
Variants§
Io(Error)
Ascii(AsAsciiStrError)
Trait Implementations§
Source§impl Debug for AsciiReadError
impl Debug for AsciiReadError
Source§impl Display for AsciiReadError
impl Display for AsciiReadError
Source§impl Error for AsciiReadError
impl Error for AsciiReadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<AsAsciiStrError> for AsciiReadError
impl From<AsAsciiStrError> for AsciiReadError
Source§fn from(source: AsAsciiStrError) -> Self
fn from(source: AsAsciiStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AsciiReadError
impl !RefUnwindSafe for AsciiReadError
impl Send for AsciiReadError
impl Sync for AsciiReadError
impl Unpin for AsciiReadError
impl !UnwindSafe for AsciiReadError
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