Enum tarrasque::ExtractError
source · Expand description
An error encountered while extracting a value from a stream of bytes.
Variants
Code(u32)
An error code.
Encoding(&'a [u8], Utf8Error)
The stream contained bytes that could not be converted into a valid UTF-8 string.
Insufficient(usize)
The stream did not contain enough bytes to extract the value.
Trait Implementations
sourceimpl<'a> Clone for ExtractError<'a>
impl<'a> Clone for ExtractError<'a>
sourcefn clone(&self) -> ExtractError<'a>
fn clone(&self) -> ExtractError<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for ExtractError<'a>
impl<'a> Debug for ExtractError<'a>
sourceimpl<'a> PartialEq<ExtractError<'a>> for ExtractError<'a>
impl<'a> PartialEq<ExtractError<'a>> for ExtractError<'a>
sourcefn eq(&self, other: &ExtractError<'a>) -> bool
fn eq(&self, other: &ExtractError<'a>) -> bool
impl<'a> Copy for ExtractError<'a>
impl<'a> Eq for ExtractError<'a>
impl<'a> StructuralEq for ExtractError<'a>
impl<'a> StructuralPartialEq for ExtractError<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ExtractError<'a>
impl<'a> Send for ExtractError<'a>
impl<'a> Sync for ExtractError<'a>
impl<'a> Unpin for ExtractError<'a>
impl<'a> UnwindSafe for ExtractError<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more