[][src]Enum librelic::RelicError

pub enum RelicError {
    Component(ComponentError),
    Io(Error),
    PackageNotFound(String),
    RepoNotFound(String),
    Fungus(FuError),
    SerdeYaml(Error),
    Skellige(Error),
}

Variants

Component(ComponentError)
Io(Error)
PackageNotFound(String)

An error indicating that the given package was not found.

RepoNotFound(String)

An error indicating that the given repo was not found.

Fungus(FuError)

An error from the fungus crate

SerdeYaml(Error)
Skellige(Error)

An error from the skellige crate

Implementations

impl RelicError[src]

pub fn package_not_found<T: AsRef<str>>(pkg: T) -> RelicError[src]

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

pub fn repo_not_found<T: AsRef<str>>(repo: T) -> RelicError[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 which allows for using as_ref to get the correct pass through.

Trait Implementations

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

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

impl Debug for RelicError[src]

impl Display for RelicError[src]

impl Error for RelicError[src]

impl From<ComponentError> for RelicError[src]

impl From<Error> for RelicError[src]

impl From<Error> for RelicError[src]

impl From<Error> for RelicError[src]

impl From<FuError> for RelicError[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.