pub enum SkillsError {
Message(String),
InvalidAgents(String),
Io(Error),
Json(Error),
Yaml(Error),
Git(Error),
Http(Box<Error>),
Zip(ZipError),
}Expand description
Unified error type for the whole crate.
Variants§
Message(String)
A user-facing plain error message.
InvalidAgents(String)
One or more invalid agent names (comma-separated).
Io(Error)
I/O error.
Json(Error)
JSON (de)serialization error.
Yaml(Error)
YAML (de)serialization error.
Git(Error)
git (libgit2) error.
Http(Box<Error>)
HTTP request error.
Zip(ZipError)
Zip archive error.
Implementations§
Trait Implementations§
Source§impl Debug for SkillsError
impl Debug for SkillsError
Source§impl Display for SkillsError
impl Display for SkillsError
Source§impl Error for SkillsError
impl Error for SkillsError
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<Error> for SkillsError
impl From<Error> for SkillsError
Source§impl From<Error> for SkillsError
impl From<Error> for SkillsError
Source§impl From<Error> for SkillsError
impl From<Error> for SkillsError
Source§impl From<Error> for SkillsError
impl From<Error> for SkillsError
Source§impl From<Error> for SkillsError
impl From<Error> for SkillsError
Auto Trait Implementations§
impl !RefUnwindSafe for SkillsError
impl !UnwindSafe for SkillsError
impl Freeze for SkillsError
impl Send for SkillsError
impl Sync for SkillsError
impl Unpin for SkillsError
impl UnsafeUnpin for SkillsError
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