pub enum DispatchError {
ConfigLoad(Box<IncludeError>),
GroupNotFound {
name: String,
available: Vec<String>,
},
CommandNotFound {
group: String,
name: String,
available_in_group: Vec<String>,
},
PlatformMismatch {
group: String,
name: String,
required: String,
current: String,
},
Runner(Box<RunnerError>),
}Expand description
Everything that can go wrong in the dispatch subsystem.
Boxed large variants to stay ≤ 128 bytes on all targets.
Variants§
ConfigLoad(Box<IncludeError>)
The config file could not be loaded or parsed.
GroupNotFound
No [[command]] entries exist for the requested group.
Fields
CommandNotFound
No [[command]] group = "<group>" entry matched the requested name.
Fields
PlatformMismatch
The requested command exists but is restricted to a different platform.
Fields
Runner(Box<RunnerError>)
The step runner returned an error.
Trait Implementations§
Source§impl Debug for DispatchError
impl Debug for DispatchError
Source§impl Display for DispatchError
impl Display for DispatchError
Source§impl Error for DispatchError
impl Error for DispatchError
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<Box<IncludeError>> for DispatchError
impl From<Box<IncludeError>> for DispatchError
Source§fn from(source: Box<IncludeError>) -> Self
fn from(source: Box<IncludeError>) -> Self
Converts to this type from the input type.
Source§impl From<Box<RunnerError>> for DispatchError
impl From<Box<RunnerError>> for DispatchError
Source§fn from(source: Box<RunnerError>) -> Self
fn from(source: Box<RunnerError>) -> Self
Converts to this type from the input type.
Source§impl From<IncludeError> for DispatchError
impl From<IncludeError> for DispatchError
Source§fn from(e: IncludeError) -> Self
fn from(e: IncludeError) -> Self
Converts to this type from the input type.
Source§impl From<RunnerError> for DispatchError
impl From<RunnerError> for DispatchError
Source§fn from(e: RunnerError) -> Self
fn from(e: RunnerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DispatchError
impl !RefUnwindSafe for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnsafeUnpin for DispatchError
impl !UnwindSafe for DispatchError
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
Source§impl<T> ErrorExt for T
impl<T> ErrorExt for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more