pub enum SystemState {
Active,
Inactive,
Dead,
Poisoned,
}Expand description
State of a system.
- Active - The system can be run.
- Inactive - The system cannot be run, but it can be reactivated.
- Dead - The system has been completely consumed. It cannot be reactivated.
- Poisoned - The system has panicked. It cannot be reactivated.
System state transitions are as follows.
| From | To | Input action |
|---|---|---|
Inactive | A system is registered | |
Inactive | Active | A system is activated |
Inactive | Dead | A system is unregistered |
Inactive | Poisoned | Not allowed |
Active | Inactive | A system is inactivated or expired |
Active | Dead | A system is expired and it’s volatile |
Active | Poisoned | A system panicked |
Dead | A system is removed by client | |
Poisoned | A system is removed by client |
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SystemState
impl RefUnwindSafe for SystemState
impl Send for SystemState
impl Sync for SystemState
impl Unpin for SystemState
impl UnwindSafe for SystemState
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> 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