Struct scutiger_lfs::processor::PktLineHandler
source · [−]Fields
rdr: Reader<R>
Implementations
sourceimpl<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> RefUnwindSafe for PktLineHandler<R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for PktLineHandler<R, W>where
R: Send,
W: Send,
impl<R, W> Sync for PktLineHandler<R, W>where
R: Sync,
W: Sync,
impl<R, W> Unpin for PktLineHandler<R, W>where
R: Unpin,
W: Unpin,
impl<R, W> UnwindSafe for PktLineHandler<R, W>where
R: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more