Struct serial_port::DataChunk
source · #[repr(align(64))]pub struct DataChunk {
pub len: u8,
pub data: [u8; 63],
}
Expand description
A chunk of data read from a serial port that will be transmitted to a receiver.
For performance, this type is sized to and aligned to 64-byte boundaries such that it fits in a cache line.
Fields§
§len: u8
§data: [u8; 63]
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DataChunk
impl Send for DataChunk
impl Sync for DataChunk
impl Unpin for DataChunk
impl UnwindSafe for DataChunk
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