#[repr(u8)]pub enum TransitionResult {
Success = 0,
Failure = 1,
Error = 2,
}Expand description
Result of a lifecycle transition callback.
Matches the rclc convention where callbacks return a status indicating whether the transition should proceed.
Variants§
Success = 0
Transition succeeded; move to the target state.
Failure = 1
Transition failed; roll back to the previous primary state.
Error = 2
An error occurred; move to ErrorProcessing state.
Implementations§
Trait Implementations§
Source§impl Clone for TransitionResult
impl Clone for TransitionResult
Source§fn clone(&self) -> TransitionResult
fn clone(&self) -> TransitionResult
Returns a duplicate 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 Hash for TransitionResult
impl Hash for TransitionResult
Source§impl PartialEq for TransitionResult
impl PartialEq for TransitionResult
impl Copy 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 UnsafeUnpin 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