pub enum State {
Inactive,
Started,
Paused,
Error,
}Expand description
Possible states of codelets
Variants§
Inactive
Codelet is not started. The codelet can be started with the start transition
Started
Codelet is started. The codelet can be stepped, paused or stopped.
Paused
Codelet is paused. Operation can be resumed with the resume transition. It is also possible to stop the codelet.
Error
Codelet is in an error state
Implementations§
Source§impl State
impl State
Sourcepub fn transition(self, request: Transition) -> Option<State>
pub fn transition(self, request: Transition) -> Option<State>
The next state after a successful state transition
Trait Implementations§
impl Copy for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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