pub struct StateMachineGroup2<P, SM1Idx, SM2Idx, State>{ /* private fields */ }Expand description
Group of 2 state machines, which can be started/stopped synchronously.
Implementations§
Source§impl<P, SM1Idx, SM2Idx, State> StateMachineGroup2<P, SM1Idx, SM2Idx, State>
impl<P, SM1Idx, SM2Idx, State> StateMachineGroup2<P, SM1Idx, SM2Idx, State>
Sourcepub fn free(
self,
) -> (StateMachine<(P, SM1Idx), State>, StateMachine<(P, SM2Idx), State>)
pub fn free( self, ) -> (StateMachine<(P, SM1Idx), State>, StateMachine<(P, SM2Idx), State>)
Split the group, releasing the contained state machines
Sourcepub fn with<SM3Idx>(
self,
other_sm: StateMachine<(P, SM3Idx), State>,
) -> StateMachineGroup3<P, SM1Idx, SM2Idx, SM3Idx, State>where
SM3Idx: StateMachineIndex,
pub fn with<SM3Idx>(
self,
other_sm: StateMachine<(P, SM3Idx), State>,
) -> StateMachineGroup3<P, SM1Idx, SM2Idx, SM3Idx, State>where
SM3Idx: StateMachineIndex,
Add another state machine to the group
Source§impl<P, SM1Idx, SM2Idx> StateMachineGroup2<P, SM1Idx, SM2Idx, Stopped>
impl<P, SM1Idx, SM2Idx> StateMachineGroup2<P, SM1Idx, SM2Idx, Stopped>
Sourcepub fn start(self) -> StateMachineGroup2<P, SM1Idx, SM2Idx, Running>
pub fn start(self) -> StateMachineGroup2<P, SM1Idx, SM2Idx, Running>
Start grouped state machines
Sourcepub fn sync(self) -> StateMachineGroup2<P, SM1Idx, SM2Idx, Stopped>
pub fn sync(self) -> StateMachineGroup2<P, SM1Idx, SM2Idx, Stopped>
Sync grouped state machines
Source§impl<P, SM1Idx, SM2Idx> StateMachineGroup2<P, SM1Idx, SM2Idx, Running>
impl<P, SM1Idx, SM2Idx> StateMachineGroup2<P, SM1Idx, SM2Idx, Running>
Sourcepub fn stop(self) -> StateMachineGroup2<P, SM1Idx, SM2Idx, Stopped>
pub fn stop(self) -> StateMachineGroup2<P, SM1Idx, SM2Idx, Stopped>
Stop grouped state machines
Auto Trait Implementations§
impl<P, SM1Idx, SM2Idx, State> Freeze for StateMachineGroup2<P, SM1Idx, SM2Idx, State>
impl<P, SM1Idx, SM2Idx, State> !RefUnwindSafe for StateMachineGroup2<P, SM1Idx, SM2Idx, State>
impl<P, SM1Idx, SM2Idx, State> Send for StateMachineGroup2<P, SM1Idx, SM2Idx, State>
impl<P, SM1Idx, SM2Idx, State> !Sync for StateMachineGroup2<P, SM1Idx, SM2Idx, State>
impl<P, SM1Idx, SM2Idx, State> Unpin for StateMachineGroup2<P, SM1Idx, SM2Idx, State>
impl<P, SM1Idx, SM2Idx, State> !UnwindSafe for StateMachineGroup2<P, SM1Idx, SM2Idx, 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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
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