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