pub struct BitTriggerBuilder { /* private fields */ }Implementations§
Source§impl BitTriggerBuilder
impl BitTriggerBuilder
pub fn new() -> Self
pub fn set_bit(self, bit: usize, state: BitState) -> Self
pub fn bit0(self, state: BitState) -> Self
pub fn bit1(self, state: BitState) -> Self
pub fn bit2(self, state: BitState) -> Self
pub fn bit3(self, state: BitState) -> Self
pub fn bit4(self, state: BitState) -> Self
pub fn bit5(self, state: BitState) -> Self
pub fn bit6(self, state: BitState) -> Self
pub fn bit7(self, state: BitState) -> Self
pub fn bit8(self, state: BitState) -> Self
pub fn is_matching(self) -> DigitalTrigger
pub fn starts_matching(self) -> DigitalTrigger
pub fn stops_matching(self) -> DigitalTrigger
Sourcepub fn auto(self) -> DigitalTrigger
pub fn auto(self) -> DigitalTrigger
Same as is_matching, but will also trigger when the bits did not match within 100ms.
Trait Implementations§
Source§impl Debug for BitTriggerBuilder
impl Debug for BitTriggerBuilder
Auto Trait Implementations§
impl Freeze for BitTriggerBuilder
impl RefUnwindSafe for BitTriggerBuilder
impl Send for BitTriggerBuilder
impl Sync for BitTriggerBuilder
impl Unpin for BitTriggerBuilder
impl UnwindSafe for BitTriggerBuilder
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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