pub struct Parser<B> { /* private fields */ }
Implementations§
Source§impl<B> Parser<B>where
B: Buffer,
impl<B> Parser<B>where
B: Buffer,
pub fn with_buffer(buf: B) -> Self
pub fn fill(&mut self, input: &[u8]) -> usize
pub fn is_full(&self) -> bool
pub fn consume(&mut self, token: ConsumeToken)
pub fn read(&self) -> Result<FrameToken<'_>, Error>
pub fn get_body(&self, token: &FrameToken<'_>) -> (&[u8], &[u8])
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Parser<B>where
B: Freeze,
impl<B> RefUnwindSafe for Parser<B>where
B: RefUnwindSafe,
impl<B> Send for Parser<B>where
B: Send,
impl<B> Sync for Parser<B>where
B: Sync,
impl<B> Unpin for Parser<B>where
B: Unpin,
impl<B> UnwindSafe for Parser<B>where
B: 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