pub struct PwmConfiguration {
pub frequency: u32,
pub duty_cycle: u16,
}
Fields§
§frequency: u32
§duty_cycle: u16
Trait Implementations§
Source§impl Clone for PwmConfiguration
impl Clone for PwmConfiguration
Source§fn clone(&self) -> PwmConfiguration
fn clone(&self) -> PwmConfiguration
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 PwmConfiguration
impl Debug for PwmConfiguration
Source§impl Default for PwmConfiguration
impl Default for PwmConfiguration
Source§fn default() -> PwmConfiguration
fn default() -> PwmConfiguration
Returns the “default value” for a type. Read more
Source§impl FromByteSlice for PwmConfiguration
impl FromByteSlice for PwmConfiguration
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]) -> PwmConfiguration
fn from_le_byte_slice(bytes: &[u8]) -> PwmConfiguration
Deserialize the implementing type from a byte slice.
Source§impl Hash for PwmConfiguration
impl Hash for PwmConfiguration
Source§impl PartialEq for PwmConfiguration
impl PartialEq for PwmConfiguration
impl Copy for PwmConfiguration
impl Eq for PwmConfiguration
impl StructuralPartialEq for PwmConfiguration
Auto Trait Implementations§
impl Freeze for PwmConfiguration
impl RefUnwindSafe for PwmConfiguration
impl Send for PwmConfiguration
impl Sync for PwmConfiguration
impl Unpin for PwmConfiguration
impl UnwindSafe for PwmConfiguration
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