pub struct AdcValuesCallbackConfiguration {
pub period: u32,
pub value_has_to_change: bool,
}
Fields§
§period: u32
§value_has_to_change: bool
Trait Implementations§
Source§impl Clone for AdcValuesCallbackConfiguration
impl Clone for AdcValuesCallbackConfiguration
Source§fn clone(&self) -> AdcValuesCallbackConfiguration
fn clone(&self) -> AdcValuesCallbackConfiguration
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 Default for AdcValuesCallbackConfiguration
impl Default for AdcValuesCallbackConfiguration
Source§fn default() -> AdcValuesCallbackConfiguration
fn default() -> AdcValuesCallbackConfiguration
Returns the “default value” for a type. Read more
Source§impl FromByteSlice for AdcValuesCallbackConfiguration
impl FromByteSlice for AdcValuesCallbackConfiguration
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]) -> AdcValuesCallbackConfiguration
fn from_le_byte_slice(bytes: &[u8]) -> AdcValuesCallbackConfiguration
Deserialize the implementing type from a byte slice.
Source§impl PartialEq for AdcValuesCallbackConfiguration
impl PartialEq for AdcValuesCallbackConfiguration
Source§fn eq(&self, other: &AdcValuesCallbackConfiguration) -> bool
fn eq(&self, other: &AdcValuesCallbackConfiguration) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for AdcValuesCallbackConfiguration
impl Eq for AdcValuesCallbackConfiguration
impl StructuralPartialEq for AdcValuesCallbackConfiguration
Auto Trait Implementations§
impl Freeze for AdcValuesCallbackConfiguration
impl RefUnwindSafe for AdcValuesCallbackConfiguration
impl Send for AdcValuesCallbackConfiguration
impl Sync for AdcValuesCallbackConfiguration
impl Unpin for AdcValuesCallbackConfiguration
impl UnwindSafe for AdcValuesCallbackConfiguration
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