pub struct PktLineWriter { /* private fields */ }Expand description
Build pkt-line responses
Implementations§
Source§impl PktLineWriter
impl PktLineWriter
pub fn new() -> Self
pub fn write(&mut self, data: &[u8])
pub fn write_str(&mut self, s: &str)
pub fn flush(&mut self)
pub fn delimiter(&mut self)
pub fn response_end(&mut self)
pub fn write_raw(&mut self, data: &[u8])
pub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn as_bytes(&self) -> &[u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PktLineWriter
impl RefUnwindSafe for PktLineWriter
impl Send for PktLineWriter
impl Sync for PktLineWriter
impl Unpin for PktLineWriter
impl UnwindSafe for PktLineWriter
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more