pub struct CltuWriter<W, const BUF: usize> { /* private fields */ }Expand description
Wraps an PhysicalWrite to CLTU-encode TC frames
before writing.
Implementations§
Source§impl<W, const BUF: usize> CltuWriter<W, BUF>
impl<W, const BUF: usize> CltuWriter<W, BUF>
Sourcepub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Consumes this wrapper, returning the inner writer.
Source§impl<W: PhysicalWrite, const BUF: usize> CltuWriter<W, BUF>
impl<W: PhysicalWrite, const BUF: usize> CltuWriter<W, BUF>
Sourcepub async fn write_frame(
&mut self,
tc_frame: &[u8],
) -> Result<(), CltuWriterError<W::Error>>
pub async fn write_frame( &mut self, tc_frame: &[u8], ) -> Result<(), CltuWriterError<W::Error>>
Encodes a TC frame as a CLTU and writes it downstream.
Trait Implementations§
Source§impl<W: PhysicalWrite, const BUF: usize> PhysicalWrite for CltuWriter<W, BUF>
impl<W: PhysicalWrite, const BUF: usize> PhysicalWrite for CltuWriter<W, BUF>
Auto Trait Implementations§
impl<W, const BUF: usize> Freeze for CltuWriter<W, BUF>where
W: Freeze,
impl<W, const BUF: usize> RefUnwindSafe for CltuWriter<W, BUF>where
W: RefUnwindSafe,
impl<W, const BUF: usize> Send for CltuWriter<W, BUF>where
W: Send,
impl<W, const BUF: usize> Sync for CltuWriter<W, BUF>where
W: Sync,
impl<W, const BUF: usize> Unpin for CltuWriter<W, BUF>where
W: Unpin,
impl<W, const BUF: usize> UnsafeUnpin for CltuWriter<W, BUF>where
W: UnsafeUnpin,
impl<W, const BUF: usize> UnwindSafe for CltuWriter<W, BUF>where
W: UnwindSafe,
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