Struct capsules_extra::usb::descriptors::CdcAcmSetLineCodingData
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)