Enum diffusion::Error
[−]
[src]
pub enum Error { CorruptSegmentHeader, CorruptMsgHeader, InsufficientLength(usize), IoError(Box<Error>), }
represents errors that can be encountered during the usage of of reader and writer.
Variants
CorruptSegmentHeader
indicates corruption when initializing the reader. This can only happens in a file.
CorruptMsgHeader
indicates corruption when reading a message. This can only happens in a file.
InsufficientLength(usize)
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.
IoError(Box<Error>)
indicates there is an IO error happening during reading or writing. This can happen in all transport types.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more