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
sourceimpl Clone for SignalData
impl Clone for SignalData
sourcefn clone(&self) -> SignalData
fn clone(&self) -> SignalData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SignalData
impl Debug for SignalData
sourceimpl Default for SignalData
impl Default for SignalData
sourcefn default() -> SignalData
fn default() -> SignalData
Returns the “default value” for a type. Read more
sourceimpl FromByteSlice for SignalData
impl FromByteSlice for SignalData
sourcefn 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.
sourcefn from_le_bytes(bytes: &[u8]) -> SignalData
fn from_le_bytes(bytes: &[u8]) -> SignalData
Deserialize the implementing type from a byte slice.
sourceimpl Hash for SignalData
impl Hash for SignalData
sourceimpl PartialEq<SignalData> for SignalData
impl PartialEq<SignalData> for SignalData
sourcefn eq(&self, other: &SignalData) -> bool
fn eq(&self, other: &SignalData) -> bool
impl Copy for SignalData
impl Eq for SignalData
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more