pub struct PktLineWriter<W> { /* private fields */ }Expand description
Writer for pkt-line format.
Implementations§
Source§impl<W: Write> PktLineWriter<W>
impl<W: Write> PktLineWriter<W>
Sourcepub fn write_data(&mut self, data: &[u8]) -> Result<()>
pub fn write_data(&mut self, data: &[u8]) -> Result<()>
Writes a data line.
Sourcepub fn write_line(&mut self, s: &str) -> Result<()>
pub fn write_line(&mut self, s: &str) -> Result<()>
Writes a string line (with newline).
Sourcepub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Returns the inner writer.
Auto Trait Implementations§
impl<W> Freeze for PktLineWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for PktLineWriter<W>where
W: RefUnwindSafe,
impl<W> Send for PktLineWriter<W>where
W: Send,
impl<W> Sync for PktLineWriter<W>where
W: Sync,
impl<W> Unpin for PktLineWriter<W>where
W: Unpin,
impl<W> UnwindSafe for PktLineWriter<W>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