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