pub struct Decoder { /* private fields */ }Implementations§
Source§impl Decoder
impl Decoder
pub fn new(mode: Mode, limits: Limits) -> Self
Sourcepub fn response_to(&mut self, method: &str)
pub fn response_to(&mut self, method: &str)
Must precede response parsing. Pipelining is intentionally not provided.
pub fn reusable(&self) -> bool
pub fn reset(&mut self) -> Result<()>
pub fn receive<'a>(&mut self, input: &'a [u8]) -> Result<Step<'a>>
pub fn eof(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
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