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