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