pub struct Decoder { /* private fields */ }Implementations§
Source§impl Decoder
impl Decoder
pub const fn new(request: Method) -> Self
pub fn scan( &self, buf: &[u8], max: usize, ) -> Result<Option<Head<()>>, Error<Infallible>>
pub fn parse<'input, F: Sink<'input>>( &self, buf: &'input [u8], max: usize, fields: F, ) -> Result<Option<Head<F>>, Error<F::Error>>
pub fn collect<'field>( &self, buf: &[u8], ) -> Result<Option<Head<List<'field>>>, Error<Error>>
pub fn decode<'field>( &self, buf: &[u8], ) -> Result<Progress<'field>, Error<Error>>
pub fn finish<'field>( &self, buf: &[u8], ) -> Result<Collected<'field>, Error<Error>>
Auto Trait Implementations§
impl Forget for Decoder
impl Freeze for Decoder
impl RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl UnsafeUnpin for Decoder
impl UnwindSafe for Decoder
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