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§
Source§impl RelicError
impl RelicError
Sourcepub fn package_not_found<T: AsRef<str>>(pkg: T) -> RelicError
pub fn package_not_found<T: AsRef<str>>(pkg: T) -> RelicError
Return an error indicating that the given package was not found.
Sourcepub fn repo_not_found<T: AsRef<str>>(repo: T) -> RelicError
pub fn repo_not_found<T: AsRef<str>>(repo: T) -> RelicError
Return an error indicating that the given repo was not found.
Sourcepub fn is<T: StdError + 'static>(&self) -> bool
pub fn is<T: StdError + 'static>(&self) -> bool
Implemented directly on the Error
type to reduce casting required
Sourcepub fn downcast_ref<T: StdError + 'static>(&self) -> Option<&T>
pub fn downcast_ref<T: StdError + 'static>(&self) -> Option<&T>
Implemented directly on the Error
type to reduce casting required
Sourcepub fn downcast_mut<T: StdError + 'static>(&mut self) -> Option<&mut T>
pub fn downcast_mut<T: StdError + 'static>(&mut self) -> Option<&mut T>
Implemented directly on the Error
type to reduce casting required
Trait Implementations§
Source§impl AsMut<dyn Error> for RelicError
impl AsMut<dyn Error> for RelicError
Source§impl AsRef<dyn Error> for RelicError
impl AsRef<dyn Error> for RelicError
Source§impl Debug for RelicError
impl Debug for RelicError
Source§impl Display for RelicError
impl Display for RelicError
Source§impl Error for RelicError
impl Error for RelicError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ComponentError> for RelicError
impl From<ComponentError> for RelicError
Source§fn from(err: ComponentError) -> RelicError
fn from(err: ComponentError) -> RelicError
Converts to this type from the input type.
Source§impl From<Error> for RelicError
impl From<Error> for RelicError
Source§fn from(err: Error) -> RelicError
fn from(err: Error) -> RelicError
Converts to this type from the input type.
Source§impl From<Error> for RelicError
impl From<Error> for RelicError
Source§fn from(err: Error) -> RelicError
fn from(err: Error) -> RelicError
Converts to this type from the input type.
Source§impl From<Error> for RelicError
impl From<Error> for RelicError
Source§fn from(err: Error) -> RelicError
fn from(err: Error) -> RelicError
Converts to this type from the input type.
Source§impl From<FuError> for RelicError
impl From<FuError> for RelicError
Source§fn from(err: FuError) -> RelicError
fn from(err: FuError) -> RelicError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RelicError
impl !RefUnwindSafe for RelicError
impl Send for RelicError
impl Sync for RelicError
impl Unpin for RelicError
impl !UnwindSafe for RelicError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more