pub enum CharacterError {
NoBytesRead,
IoError {
bytes: Vec<u8>,
error: Error,
},
Other {
bytes: Vec<u8>,
error: Error,
},
}
Expand description
Type to represent stream errors.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for CharacterError
impl Debug for CharacterError
Source§impl Display for CharacterError
impl Display for CharacterError
Source§impl Error for CharacterError
impl Error for CharacterError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for CharacterError
impl !RefUnwindSafe for CharacterError
impl Send for CharacterError
impl Sync for CharacterError
impl Unpin for CharacterError
impl !UnwindSafe for CharacterError
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