[−][src]Enum librelic::RelicError
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]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ComponentError> for RelicError
[src]
pub fn from(err: ComponentError) -> RelicError
[src]
impl From<Error> for RelicError
[src]
pub fn from(err: Error) -> RelicError
[src]
impl From<Error> for RelicError
[src]
pub fn from(err: Error) -> RelicError
[src]
impl From<Error> for RelicError
[src]
pub fn from(err: Error) -> RelicError
[src]
impl From<FuError> for RelicError
[src]
pub fn from(err: FuError) -> RelicError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RelicError
[src]
impl Send for RelicError
[src]
impl Sync for RelicError
[src]
impl Unpin for RelicError
[src]
impl !UnwindSafe for RelicError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,