pub enum Status {
Previous,
Unset,
Named(String),
}
Expand description
The return status of an invoked command.
Variants§
Previous
No new status was set, and nothing was sent, so instead we are to assume the previous status is still in effect.
Unset
Something was sent, but we couldn’t identify it as status.
Named(String)
Assume the given named status.
Implementations§
Source§impl Status
impl Status
Initialization
Source§impl Status
impl Status
Access
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Note that this is assumed true even if no new status is set, hence we assume that upon error, the caller will not continue interacting with the process.
Sourcepub fn is_delayed(&self) -> bool
pub fn is_delayed(&self) -> bool
Return true if the status is explicitly set to indicated delayed output processing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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