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

The data contained the given tag, which doesn't correspond to any known type.

The data represents a string, but it wasn't null-terminated.

The data represents a string, but it contained invalid UTF-8.

The data represents a boolean, but it contained a value other than 'false' or 'true'.

The data represents a float, but wasn't exactly 64 bits.

The data represents a file descriptor, but wasn't exactly 32 bits.

The data represents a timestamp that does not fit in a Timespec.

The data contains a subfield (of a map or seq) with an incomplete or too large length.

The data contains a map with an incomplete key-value pair.

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]

Formats the value using the given formatter. Read more

impl Clone for ReadError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ReadError
[src]

impl PartialEq for ReadError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ReadError
[src]

impl Error for ReadError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl Display for ReadError
[src]

Formats the value using the given formatter. Read more

impl From<ReadError> for NotRead
[src]

Performs the conversion.

impl From<Utf8Error> for ReadError
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ReadError

impl Sync for ReadError