pub struct Synchronize<'sm, SM>where
SM: ValidStateMachine,{ /* private fields */ }Expand description
Type which, once destructed, restarts the clock dividers for all selected state machines, effectively synchronizing them.
Implementations§
Source§impl<'sm, P, SM> Synchronize<'sm, (P, SM)>where
P: PIOExt,
SM: StateMachineIndex,
impl<'sm, P, SM> Synchronize<'sm, (P, SM)>where
P: PIOExt,
SM: StateMachineIndex,
Sourcepub fn and_with<SM2>(
self,
_other_sm: &'sm mut StateMachine<(P, SM2), Stopped>,
) -> Synchronize<'sm, (P, SM)>where
SM2: StateMachineIndex,
pub fn and_with<SM2>(
self,
_other_sm: &'sm mut StateMachine<(P, SM2), Stopped>,
) -> Synchronize<'sm, (P, SM)>where
SM2: StateMachineIndex,
Adds another state machine to be synchronized.
Trait Implementations§
Source§impl<SM> Drop for Synchronize<'_, SM>where
SM: ValidStateMachine,
impl<SM> Drop for Synchronize<'_, SM>where
SM: ValidStateMachine,
Auto Trait Implementations§
impl<'sm, SM> Freeze for Synchronize<'sm, SM>
impl<'sm, SM> !RefUnwindSafe for Synchronize<'sm, SM>
impl<'sm, SM> Send for Synchronize<'sm, SM>where
SM: Send,
impl<'sm, SM> !Sync for Synchronize<'sm, SM>
impl<'sm, SM> Unpin for Synchronize<'sm, SM>
impl<'sm, SM> !UnwindSafe for Synchronize<'sm, SM>
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