[][src]Enum skellige::prelude::git::Error

pub enum Error {
    BranchNotFound(String),
    FastForwardOnly,
    Fungus(FuError),
    Git2(Error),
    NoMessageWasFound,
    Progress(Error),
    RepoNotFound(String),
    UrlNotSet,
}

Define common error wrapper type

Variants

BranchNotFound(String)

An error indicating that the given branch was not found.

FastForwardOnly

An error indicating that only fast forwards are allowed.

Fungus(FuError)

An error from fungus which might contain more errors

Git2(Error)

Git2 wrapped error

NoMessageWasFound

An error indicating that no message was found.

Progress(Error)
RepoNotFound(String)

An error indicating that the given repo was not found.

UrlNotSet

An error indicating that the URL was not set for the repo.

Implementations

impl Error[src]

pub fn branch_not_found<T: AsRef<str>>(pkg: T) -> Error[src]

Return an error indicating that the given branch was not found.

pub fn repo_not_found<T: AsRef<str>>(repo: T) -> Error[src]

Return an error indicating that the given repo was not found.

pub fn is<T: StdError + 'static>(&self) -> bool[src]

Implemented directly on the Error type to reduce casting required

pub fn downcast_ref<T: StdError + 'static>(&self) -> Option<&T>[src]

Implemented directly on the Error type to reduce casting required

pub fn downcast_mut<T: StdError + 'static>(&mut self) -> Option<&mut T>[src]

Implemented directly on the Error type to reduce casting required

pub fn source(&self) -> Option<&(dyn StdError + 'static)>[src]

Implemented directly on the Error type to reduce casting required

Trait Implementations

impl AsMut<dyn Error + 'static> for Error[src]

impl AsRef<dyn Error + 'static> for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<FuError> for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.