Enum tarrasque::ExtractError [−][src]
pub enum ExtractError<'a> { Code(u32), Encoding(&'a [u8], Utf8Error), Insufficient(usize), }
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
impl<'a> Copy for ExtractError<'a>
[src]
impl<'a> Copy for ExtractError<'a>
impl<'a> Clone for ExtractError<'a>
[src]
impl<'a> Clone for ExtractError<'a>
fn clone(&self) -> ExtractError<'a>
[src]
fn clone(&self) -> ExtractError<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for ExtractError<'a>
[src]
impl<'a> Debug for ExtractError<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> PartialEq for ExtractError<'a>
[src]
impl<'a> PartialEq for ExtractError<'a>
fn eq(&self, other: &ExtractError<'a>) -> bool
[src]
fn eq(&self, other: &ExtractError<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ExtractError<'a>) -> bool
[src]
fn ne(&self, other: &ExtractError<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for ExtractError<'a>
[src]
impl<'a> Eq for ExtractError<'a>
Auto Trait Implementations
impl<'a> Send for ExtractError<'a>
impl<'a> Send for ExtractError<'a>
impl<'a> Sync for ExtractError<'a>
impl<'a> Sync for ExtractError<'a>