#[non_exhaustive]pub enum UnitStatus {
Idle,
Running,
Exited(UnitExit),
Lost,
}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.
Idle
No run held: never started, stopped via stop, or released.
Running
Exited(UnitExit)
Lost
The signal stream ended before the unit exited; state unknown.
Trait Implementations§
Source§impl Clone for UnitStatus
impl Clone for UnitStatus
impl Copy for UnitStatus
Source§impl Debug for UnitStatus
impl Debug for UnitStatus
impl Eq for UnitStatus
Source§impl PartialEq for UnitStatus
impl PartialEq for UnitStatus
impl StructuralPartialEq for UnitStatus
Auto Trait Implementations§
impl Freeze for UnitStatus
impl RefUnwindSafe for UnitStatus
impl Send for UnitStatus
impl Sync for UnitStatus
impl Unpin for UnitStatus
impl UnsafeUnpin for UnitStatus
impl UnwindSafe for UnitStatus
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