Enum broot::errors::ProgramError
source · pub enum ProgramError {
Show 24 variants
AmbiguousVerbName {
name: String,
},
ArgParse {
bad: String,
valid: String,
},
Conf {
source: ConfError,
},
ConfFile {
path: String,
details: ConfError,
},
ImageError {
source: ImageError,
},
InternalError {
details: String,
},
InvalidGlobError {
pattern: String,
},
Io {
source: Error,
},
LaunchError {
program: String,
source: Error,
},
Lfs {
details: String,
},
NetError {
source: NetError,
},
OpenError {
source: OpenError,
},
ShelInstall {
source: ShellInstallError,
},
Svg {
source: SvgError,
},
SyntectCrashed {
details: String,
},
Termimad {
source: Error,
},
TreeBuild {
source: TreeBuildError,
},
UnknowShell {
shell: String,
},
UnknownVerb {
name: String,
},
UnmappableFile,
UnmatchingVerbArgs {
name: String,
},
UnprintableFile,
Unrecognized {
token: String,
},
ZeroLenFile,
}
Variants§
AmbiguousVerbName
ArgParse
Conf
ConfFile
ImageError
Fields
§
source: ImageError
InternalError
InvalidGlobError
Io
LaunchError
Lfs
NetError
OpenError
ShelInstall
Fields
§
source: ShellInstallError
Svg
SyntectCrashed
Termimad
TreeBuild
Fields
§
source: TreeBuildError
UnknowShell
UnknownVerb
UnmappableFile
UnmatchingVerbArgs
UnprintableFile
Unrecognized
ZeroLenFile
Trait Implementations§
source§impl Debug for ProgramError
impl Debug for ProgramError
source§impl Display for ProgramError
impl Display for ProgramError
source§impl Error for ProgramError
impl Error for ProgramError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ConfError> for ProgramError
impl From<ConfError> for ProgramError
source§impl From<Error> for ProgramError
impl From<Error> for ProgramError
source§impl From<Error> for ProgramError
impl From<Error> for ProgramError
source§impl From<ImageError> for ProgramError
impl From<ImageError> for ProgramError
source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
source§impl From<NetError> for ProgramError
impl From<NetError> for ProgramError
source§impl From<OpenError> for ProgramError
impl From<OpenError> for ProgramError
source§impl From<ShellInstallError> for ProgramError
impl From<ShellInstallError> for ProgramError
source§fn from(source: ShellInstallError) -> Self
fn from(source: ShellInstallError) -> Self
Converts to this type from the input type.
source§impl From<SvgError> for ProgramError
impl From<SvgError> for ProgramError
source§impl From<TreeBuildError> for ProgramError
impl From<TreeBuildError> for ProgramError
source§fn from(source: TreeBuildError) -> Self
fn from(source: TreeBuildError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ProgramError
impl Send for ProgramError
impl Sync for ProgramError
impl Unpin for ProgramError
impl !UnwindSafe for ProgramError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.