pub struct AosFrameWriter<const BUF: usize> { /* private fields */ }Expand description
Accumulates packets into AOS transfer frames.
Owns its frame buffer internally (sized by BUF). Packets
are pushed directly into the buffer at the correct offset.
finish() stamps the header and
returns a borrow of the completed frame.
Implementations§
Source§impl<const BUF: usize> AosFrameWriter<BUF>
impl<const BUF: usize> AosFrameWriter<BUF>
Sourcepub fn new(config: AosFrameWriterConfig) -> Self
pub fn new(config: AosFrameWriterConfig) -> Self
Creates a new AOS frame writer.
Trait Implementations§
Auto Trait Implementations§
impl<const BUF: usize> Freeze for AosFrameWriter<BUF>
impl<const BUF: usize> RefUnwindSafe for AosFrameWriter<BUF>
impl<const BUF: usize> Send for AosFrameWriter<BUF>
impl<const BUF: usize> Sync for AosFrameWriter<BUF>
impl<const BUF: usize> Unpin for AosFrameWriter<BUF>
impl<const BUF: usize> UnsafeUnpin for AosFrameWriter<BUF>
impl<const BUF: usize> UnwindSafe for AosFrameWriter<BUF>
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