pub enum ReaderErrorKind {
Read(ErrorKind),
BufferTooSmall,
Eof,
InvalidRgb,
}Expand description
The specific reader error kind, shared by text and binary TokenReaders.
Variants§
Read(ErrorKind)
An underlying error from a Reader
BufferTooSmall
The internal buffer does not have enough room to store data for the next token
Eof
An early end of the data encountered
InvalidRgb
The binary data is corrupted (invalid RGB token)
Trait Implementations§
Source§impl Clone for ReaderErrorKind
impl Clone for ReaderErrorKind
Source§fn clone(&self) -> ReaderErrorKind
fn clone(&self) -> ReaderErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReaderErrorKind
Source§impl Debug for ReaderErrorKind
impl Debug for ReaderErrorKind
impl Eq for ReaderErrorKind
Source§impl PartialEq for ReaderErrorKind
impl PartialEq for ReaderErrorKind
impl StructuralPartialEq for ReaderErrorKind
Auto Trait Implementations§
impl Freeze for ReaderErrorKind
impl RefUnwindSafe for ReaderErrorKind
impl Send for ReaderErrorKind
impl Sync for ReaderErrorKind
impl Unpin for ReaderErrorKind
impl UnsafeUnpin for ReaderErrorKind
impl UnwindSafe for ReaderErrorKind
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