pub struct CounterConfig {
pub high_threshold: i16,
pub low_threshold: i16,
pub debounce: u32,
}
Fields§
§high_threshold: i16
§low_threshold: i16
§debounce: u32
Trait Implementations§
Source§impl Clone for CounterConfig
impl Clone for CounterConfig
Source§fn clone(&self) -> CounterConfig
fn clone(&self) -> CounterConfig
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 CounterConfig
impl Debug for CounterConfig
Source§impl Default for CounterConfig
impl Default for CounterConfig
Source§fn default() -> CounterConfig
fn default() -> CounterConfig
Returns the “default value” for a type. Read more
Source§impl FromByteSlice for CounterConfig
impl FromByteSlice for CounterConfig
Source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
Source§fn from_le_byte_slice(bytes: &[u8]) -> CounterConfig
fn from_le_byte_slice(bytes: &[u8]) -> CounterConfig
Deserialize the implementing type from a byte slice.
Source§impl Hash for CounterConfig
impl Hash for CounterConfig
Source§impl PartialEq for CounterConfig
impl PartialEq for CounterConfig
impl Copy for CounterConfig
impl Eq for CounterConfig
impl StructuralPartialEq for CounterConfig
Auto Trait Implementations§
impl Freeze for CounterConfig
impl RefUnwindSafe for CounterConfig
impl Send for CounterConfig
impl Sync for CounterConfig
impl Unpin for CounterConfig
impl UnwindSafe for CounterConfig
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