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
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(ErrorKind)
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]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=
.
impl Eq for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
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