pub struct CdcAcmSetLineCodingData {
pub baud_rate: u32,
pub stop_bits: u8,
pub parity: u8,
pub data_bits: u8,
}
Expand description
The data structure sent in a CDC-ACM Set Line Coding message.
Fields§
§baud_rate: u32
§stop_bits: u8
§parity: u8
§data_bits: u8
Implementations§
Source§impl CdcAcmSetLineCodingData
impl CdcAcmSetLineCodingData
Sourcepub fn get(p: &[VolatileCell<u8>]) -> Option<Self>
pub fn get(p: &[VolatileCell<u8>]) -> Option<Self>
Create a CdcAcmSetLineCodingData
structure from a packet received
after the ctrl endpoint setup.
Trait Implementations§
Source§impl Clone for CdcAcmSetLineCodingData
impl Clone for CdcAcmSetLineCodingData
Source§fn clone(&self) -> CdcAcmSetLineCodingData
fn clone(&self) -> CdcAcmSetLineCodingData
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 CdcAcmSetLineCodingData
impl Debug for CdcAcmSetLineCodingData
impl Copy for CdcAcmSetLineCodingData
Auto Trait Implementations§
impl Freeze for CdcAcmSetLineCodingData
impl RefUnwindSafe for CdcAcmSetLineCodingData
impl Send for CdcAcmSetLineCodingData
impl Sync for CdcAcmSetLineCodingData
impl Unpin for CdcAcmSetLineCodingData
impl UnwindSafe for CdcAcmSetLineCodingData
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