pub enum RunbookError {
CurrentDir(Error),
Io {
action: &'static str,
path: PathBuf,
source: Error,
},
PreferenceParse {
path: PathBuf,
source: Error,
},
PreferenceWrite {
path: PathBuf,
source: Error,
},
Usage {
reason: String,
help: &'static str,
},
}Variants§
Implementations§
Source§impl RunbookError
impl RunbookError
pub fn current_dir(error: Error) -> Self
pub fn usage(reason: String, help: &'static str) -> Self
pub fn io(action: &'static str, path: PathBuf, source: Error) -> Self
pub fn preference_parse(path: PathBuf, source: Error) -> Self
pub fn preference_write(path: PathBuf, source: Error) -> Self
Trait Implementations§
Source§impl Debug for RunbookError
impl Debug for RunbookError
Source§impl Display for RunbookError
impl Display for RunbookError
Source§impl Error for RunbookError
impl Error for RunbookError
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()
Auto Trait Implementations§
impl Freeze for RunbookError
impl !RefUnwindSafe for RunbookError
impl Send for RunbookError
impl Sync for RunbookError
impl Unpin for RunbookError
impl UnsafeUnpin for RunbookError
impl !UnwindSafe for RunbookError
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