pub struct TransitionResult {
pub new_state: OpState,
pub effects: Vec<KernelEffect>,
}Expand description
Result of a successful state transition.
Fields§
§new_state: OpStateThe new state after the transition.
effects: Vec<KernelEffect>Effects to execute as a result of this transition.
Implementations§
Source§impl TransitionResult
impl TransitionResult
Sourcepub fn with_effects(new_state: OpState, effects: Vec<KernelEffect>) -> Self
pub fn with_effects(new_state: OpState, effects: Vec<KernelEffect>) -> Self
Create a transition result with effects.
Trait Implementations§
Source§impl Clone for TransitionResult
impl Clone for TransitionResult
Source§fn clone(&self) -> TransitionResult
fn clone(&self) -> TransitionResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransitionResult
impl Debug for TransitionResult
Source§impl PartialEq for TransitionResult
impl PartialEq for TransitionResult
impl Eq for TransitionResult
impl StructuralPartialEq for TransitionResult
Auto Trait Implementations§
impl Freeze for TransitionResult
impl RefUnwindSafe for TransitionResult
impl Send for TransitionResult
impl Sync for TransitionResult
impl Unpin for TransitionResult
impl UnwindSafe for TransitionResult
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