pub struct PktLineHandler<R: Read, W: Write> {
pub rdr: Reader<R>,
/* private fields */
}Fields§
§rdr: Reader<R>Implementations§
Source§impl<R: Read, W: Write> PktLineHandler<R, W>
impl<R: Read, W: Write> PktLineHandler<R, W>
pub fn new(rdr: R, wrtr: W) -> Self
pub fn read_to_type(&mut self, typ: PacketType) -> Result<Vec<Bytes>, Error>
pub fn read_to_delim(&mut self) -> Result<Vec<Bytes>, Error>
pub fn read_to_flush(&mut self) -> Result<Vec<Bytes>, Error>
pub fn send(&mut self, msg: &[u8]) -> Result<(), Error>
pub fn flush(&mut self) -> Result<(), Error>
pub fn delim(&mut self) -> Result<(), Error>
pub fn send_error(&mut self, status: u32, msg: &str) -> Result<(), Error>
pub fn send_status(&mut self, status: Status) -> Result<(), Error>
Auto Trait Implementations§
impl<R, W> Freeze for PktLineHandler<R, W>
impl<R, W> RefUnwindSafe for PktLineHandler<R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for PktLineHandler<R, W>
impl<R, W> Sync for PktLineHandler<R, W>
impl<R, W> Unpin for PktLineHandler<R, W>
impl<R, W> UnwindSafe for PktLineHandler<R, W>where
R: UnwindSafe,
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