pub enum CliError {
Core(GlyphError),
Io(Error),
Env(VarError),
Terminal(String),
Input(String),
File(String),
Other(String),
}Variantsยง
Core(GlyphError)
Io(Error)
Env(VarError)
Terminal(String)
Input(String)
File(String)
Other(String)
Trait Implementationsยง
Sourceยงimpl Error for CliError
impl Error for CliError
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<GlyphError> for CliError
impl From<GlyphError> for CliError
Sourceยงfn from(source: GlyphError) -> Self
fn from(source: GlyphError) -> Self
Converts to this type from the input type.
Auto Trait Implementationsยง
impl Freeze for CliError
impl !RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin for CliError
impl !UnwindSafe for CliError
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