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