Enum argdata::ReadError [−][src]
pub enum ReadError { InvalidTag(u8), MissingNullTerminator, InvalidUtf8, InvalidBoolValue, InvalidFloatLength, InvalidFdLength, TimestampOutOfRange, InvalidSubfield, InvalidKeyValuePair, InvalidFdNumber(u32), }
An error while reading argdata.
Variants
InvalidTag(u8)
The data contained the given tag, which doesn't correspond to any known type.
MissingNullTerminator
The data represents a string, but it wasn't null-terminated.
InvalidUtf8
The data represents a string, but it contained invalid UTF-8.
InvalidBoolValue
The data represents a boolean, but it contained a value other than 'false' or 'true'.
InvalidFloatLength
The data represents a float, but wasn't exactly 64 bits.
InvalidFdLength
The data represents a file descriptor, but wasn't exactly 32 bits.
TimestampOutOfRange
The data represents a timestamp that does not fit in a Timespec.
InvalidSubfield
The data contains a subfield (of a map or seq) with an incomplete or too large length.
InvalidKeyValuePair
The data contains a map with an incomplete key-value pair.
InvalidFdNumber(u32)
The data represents a file descriptor that doesn't exist. (Possibly because there were no file descriptors 'attached' to the argdata value at all.)
Trait Implementations
impl Debug for ReadError
[src]
impl Debug for ReadError
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 Clone for ReadError
[src]
impl Clone for ReadError
fn clone(&self) -> ReadError
[src]
fn clone(&self) -> ReadError
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)
Performs copy-assignment from source
. Read more
impl Copy for ReadError
[src]
impl Copy for ReadError
impl PartialEq for ReadError
[src]
impl PartialEq for ReadError
fn eq(&self, other: &ReadError) -> bool
[src]
fn eq(&self, other: &ReadError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ReadError) -> bool
[src]
fn ne(&self, other: &ReadError) -> bool
This method tests for !=
.
impl Eq for ReadError
[src]
impl Eq for ReadError
impl Error for ReadError
[src]
impl Error for ReadError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for ReadError
[src]
impl Display for ReadError
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 From<ReadError> for NotRead
[src]
impl From<ReadError> for NotRead
impl From<Utf8Error> for ReadError
[src]
impl From<Utf8Error> for ReadError