pub struct Prox1FrameWriter<const BUF: usize> { /* private fields */ }Expand description
Accumulates packets into Proximity-1 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> Prox1FrameWriter<BUF>
impl<const BUF: usize> Prox1FrameWriter<BUF>
Sourcepub fn new(config: Prox1FrameWriterConfig) -> Self
pub fn new(config: Prox1FrameWriterConfig) -> Self
Creates a new Proximity-1 frame writer.
Trait Implementations§
Auto Trait Implementations§
impl<const BUF: usize> Freeze for Prox1FrameWriter<BUF>
impl<const BUF: usize> RefUnwindSafe for Prox1FrameWriter<BUF>
impl<const BUF: usize> Send for Prox1FrameWriter<BUF>
impl<const BUF: usize> Sync for Prox1FrameWriter<BUF>
impl<const BUF: usize> Unpin for Prox1FrameWriter<BUF>
impl<const BUF: usize> UnsafeUnpin for Prox1FrameWriter<BUF>
impl<const BUF: usize> UnwindSafe for Prox1FrameWriter<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