Enum diffusion::Error[][src]

pub enum Error {
    CorruptSegmentHeader,
    CorruptMsgHeader,
    InsufficientLength(usize),
    IoError(ErrorKind),
}

represents errors that can be encountered during the usage of of reader and writer.

Variants

indicates corruption when initializing the reader. This can only happens in a file.

indicates corruption when reading a message. This can only happens in a file.

indicates possibily a curruption. usize means the number of bytes it need in addition to what is already in there. This can only happens in a file.

indicates there is an IO error happening during reading or writing. This can happen in all transport types.

Trait Implementations

impl Copy for Error
[src]

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Error
[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 Error
[src]

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

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

impl From<Error> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error