pub enum TransactionKind {
Set(State),
Get(State),
Toggle,
GetState(State),
WaitForState(State),
WaitForEdge(Edge),
}
Available on crate feature
eh1
only.Expand description
MockPin transaction kind.
Variants§
Set(State)
Set the pin state
Get(State)
Get the pin state
Toggle
Toggle the pin state
GetState(State)
Get the set state of the stateful pin
WaitForState(State)
Available on crate feature
embedded-hal-async
only.Wait for the given pin state
WaitForEdge(Edge)
Available on crate feature
embedded-hal-async
only.Wait for the given pin edge
Trait Implementations§
Source§impl Clone for TransactionKind
impl Clone for TransactionKind
Source§fn clone(&self) -> TransactionKind
fn clone(&self) -> TransactionKind
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 TransactionKind
impl Debug for TransactionKind
Source§impl PartialEq for TransactionKind
impl PartialEq for TransactionKind
impl Eq for TransactionKind
impl StructuralPartialEq for TransactionKind
Auto Trait Implementations§
impl Freeze for TransactionKind
impl RefUnwindSafe for TransactionKind
impl Send for TransactionKind
impl Sync for TransactionKind
impl Unpin for TransactionKind
impl UnwindSafe for TransactionKind
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