Enum libgitbox::GitBoxError [−] [src]

pub enum GitBoxError {
    CURL(ErrCode),
    Docopt(Error),
    Git(Error),
    IO(Error),
    PARSEINT(ParseIntError),
    PARSESTR(FromUtf8Error),
    SSH(Ssh2Error),
    Other(&'static str),
}

An error thrown by the git-box process.

Variants

CURL(ErrCode)

Error thrown during curl operations.

Docopt(Error)

Error thrown parsing arguments.

Git(Error)

Error thrown during git operations.

IO(Error)

Error thrown during I/O operations.

PARSEINT(ParseIntError)

Error thrown parsing an int.

PARSESTR(FromUtf8Error)

Error thrown parsing a string.

SSH(Ssh2Error)

Error thrown during ssh operations.

Other(&'static str)

Generic Error.

Trait Implementations

impl Debug for GitBoxError
[src]

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

Formats the value using the given formatter.

impl Display for GitBoxError
[src]

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

Formats the value using the given formatter.

impl Error for GitBoxError
[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

impl From<ErrCode> for GitBoxError
[src]

fn from(err: ErrCode) -> GitBoxError

Performs the conversion.

impl From<Error> for GitBoxError
[src]

fn from(err: Error) -> GitBoxError

Performs the conversion.

impl From<Error> for GitBoxError
[src]

fn from(err: Error) -> GitBoxError

Performs the conversion.

impl From<Error> for GitBoxError
[src]

fn from(err: Error) -> GitBoxError

Performs the conversion.

impl From<Ssh2Error> for GitBoxError
[src]

fn from(err: Ssh2Error) -> GitBoxError

Performs the conversion.

impl From<ParseIntError> for GitBoxError
[src]

fn from(err: ParseIntError) -> GitBoxError

Performs the conversion.

impl From<FromUtf8Error> for GitBoxError
[src]

fn from(err: FromUtf8Error) -> GitBoxError

Performs the conversion.