pub struct SkillCliOutcome { /* private fields */ }Expand description
What a skill verb did, not yet written.
Implementations§
Source§impl SkillCliOutcome
impl SkillCliOutcome
Sourcepub fn report(&self) -> Option<&SkillReport>
pub fn report(&self) -> Option<&SkillReport>
The report, when the action succeeded.
Sourcepub fn error(&self) -> Option<&SkillError>
pub fn error(&self) -> Option<&SkillError>
The skill failure, when the action ran and failed.
Sourcepub fn emit<W: Write>(self, emitter: &mut CliEmitter<W>) -> u8
pub fn emit<W: Write>(self, emitter: &mut CliEmitter<W>) -> u8
Write the outcome as the command’s one terminal event and return the
exit status, settled by CliEmitter::finish.
Exit status: 0 with the SkillReport as the result; 2 for
SkillErrorKind::Usage, decided before any target is touched; 1
for every other failure, with the error’s SkillErrorKind::code as
error.code and any per-target partial_report.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SkillCliOutcome
impl Freeze for SkillCliOutcomewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SkillTargetStatus>: Freeze,
PhantomData<PathBuf>: Freeze,
&'static str: Freeze,
PhantomData<SkillUninstallStatus>: Freeze,
*const SkillReport is !null: Freeze,
PhantomData<SkillReport>: Freeze,
impl Move for SkillCliOutcome
impl RefUnwindSafe for SkillCliOutcome
impl Send for SkillCliOutcome
impl Sync for SkillCliOutcome
impl Unpin for SkillCliOutcome
impl UnsafeUnpin for SkillCliOutcomewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SkillTargetStatus>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<SkillUninstallStatus>: UnsafeUnpin,
*const SkillReport is !null: UnsafeUnpin,
PhantomData<SkillReport>: UnsafeUnpin,
impl UnwindSafe for SkillCliOutcome
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