Enum librsync::Error [] [src]

pub enum Error {
    Io(Error),
    Mem,
    BadMagic,
    Unimplemented,
    Internal,
    Unknown(i32),
}

Enumeration of all possible errors in this crate.

Variants

Io(Error)

An IO error.

Mem

Out of memory.

BadMagic

Bad magic number at start of stream.

Unimplemented

The feature is not available yet.

Internal

Probably a library bug.

Unknown(i32)

All the other error numbers.

This error should never occur, as it is an indication of a bug.

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

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

impl Display for Error
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<rs_result> for Error
[src]

fn from(err: rs_result) -> Error

Performs the conversion.