Enum nuts_bytes::ReaderError
source · pub enum ReaderError {
Eof,
InvalidChar(u32),
InvalidString(FromUtf8Error),
}
Expand description
Default error type of the Reader
utility.
Variants§
Eof
Failed to read the requested number of bytes. No more bytes are available for reading.
InvalidChar(u32)
Failed to deserialize into a char
. The source u32
cannot be
converted into a char
.
InvalidString(FromUtf8Error)
Failed to deserialize into a string. The source byte data are not valid UTF-8.
Trait Implementations§
source§impl Debug for ReaderError
impl Debug for ReaderError
source§impl Display for ReaderError
impl Display for ReaderError
source§impl Error for ReaderError
impl Error for ReaderError
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 TakeBytesError for ReaderError
impl TakeBytesError for ReaderError
source§impl TakeCharError for ReaderError
impl TakeCharError for ReaderError
source§fn invalid_char(n: u32) -> Self
fn invalid_char(n: u32) -> Self
Deserialized an invalid character. Read more
source§impl TakeStringError for ReaderError
impl TakeStringError for ReaderError
source§fn invalid_string(err: FromUtf8Error) -> Self
fn invalid_string(err: FromUtf8Error) -> Self
Creates an error, where the byte data is not valid UTF-8.
Auto Trait Implementations§
impl RefUnwindSafe for ReaderError
impl Send for ReaderError
impl Sync for ReaderError
impl Unpin for ReaderError
impl UnwindSafe for ReaderError
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