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