Enum embedded_hal_mock::eh0::pin::TransactionKind
source · pub enum TransactionKind {
Set(State),
Get(State),
Disable,
Enable,
GetDuty(PwmDuty),
GetMaxDuty(PwmDuty),
SetDuty(PwmDuty),
}
Available on crate feature
eh0
only.Expand description
MockPin transaction kind.
Variants§
Set(State)
Set the pin state
Get(State)
Get the pin state
Disable
Disable a PwmPin
using PwmPin::disable
Enable
Enable a PwmPin
using PwmPin::enable
GetDuty(PwmDuty)
Query the duty of a PwmPin
using PwmPin::get_duty
, returning the specified value
GetMaxDuty(PwmDuty)
Query the max. duty of a PwmPin
using PwmPin::get_max_duty
, returning the specified value
SetDuty(PwmDuty)
Set the duty of a PwmPin
using PwmPin::set_duty
, expecting the specified value
Trait Implementations§
source§impl Clone for TransactionKind
impl Clone for TransactionKind
source§fn clone(&self) -> TransactionKind
fn clone(&self) -> TransactionKind
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 TransactionKind
impl Debug for TransactionKind
source§impl PartialEq for TransactionKind
impl PartialEq for TransactionKind
source§fn eq(&self, other: &TransactionKind) -> bool
fn eq(&self, other: &TransactionKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TransactionKind
impl StructuralEq for TransactionKind
impl StructuralPartialEq for TransactionKind
Auto Trait Implementations§
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