#[non_exhaustive]pub enum DispatchResult {
Handled(RunOutput),
Binary(Vec<u8>, String),
Artifact(ArtifactRun),
Silent,
Error(RunError),
NoMatch(ArgMatches),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Handled(RunOutput)
Binary(Vec<u8>, String)
Artifact(ArtifactRun)
Silent
Error(RunError)
NoMatch(ArgMatches)
Implementations§
Source§impl DispatchResult
impl DispatchResult
pub fn is_handled(&self) -> bool
pub fn is_binary(&self) -> bool
pub fn is_artifact(&self) -> bool
pub fn is_silent(&self) -> bool
pub fn is_error(&self) -> bool
pub fn output(&self) -> Option<&str>
pub fn error(&self) -> Option<&str>
pub fn success_kind(&self) -> Option<SuccessKind>
pub fn error_kind(&self) -> Option<RunErrorKind>
pub fn exit_status(&self) -> Option<ExitStatus>
pub fn binary(&self) -> Option<(&[u8], &str)>
pub fn artifact(&self) -> Option<&ArtifactRun>
pub fn matches(&self) -> Option<&ArgMatches>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DispatchResult
impl !UnwindSafe for DispatchResult
impl Freeze for DispatchResult
impl Send for DispatchResult
impl Sync for DispatchResult
impl Unpin for DispatchResult
impl UnsafeUnpin for DispatchResult
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