pub struct Http1RequestDecoder { /* private fields */ }
Implementations§
Source§impl Http1RequestDecoder
impl Http1RequestDecoder
pub fn new(buf_capacity: usize, config: Option<HeadParseConfig>) -> Self
Methods from Deref<Target = Http1RequestDecoderInner>§
pub fn has_unparsed_bytes(&self) -> bool
Trait Implementations§
Source§impl Deref for Http1RequestDecoder
impl Deref for Http1RequestDecoder
Source§type Target = Http1Decoder<RequestHeadParser>
type Target = Http1Decoder<RequestHeadParser>
The resulting type after dereferencing.
Source§fn deref(&self) -> &Http1RequestDecoderInner
fn deref(&self) -> &Http1RequestDecoderInner
Dereferences the value.
Source§impl DerefMut for Http1RequestDecoder
impl DerefMut for Http1RequestDecoder
Source§fn deref_mut(&mut self) -> &mut Http1RequestDecoderInner
fn deref_mut(&mut self) -> &mut Http1RequestDecoderInner
Mutably dereferences the value.
Source§impl<S, SLEEP> Http1StreamDecoder<S, SLEEP, Request<()>> for Http1RequestDecoder
impl<S, SLEEP> Http1StreamDecoder<S, SLEEP, Request<()>> for Http1RequestDecoder
fn read_head<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stream: &'life1 mut S,
) -> Pin<Box<dyn Future<Output = Result<(Request<()>, BodyFraming), IoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_body<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stream: &'life1 mut S,
) -> Pin<Box<dyn Future<Output = Result<DecoderBody, IoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set_read_timeout(&mut self, dur: Duration)
Auto Trait Implementations§
impl !Freeze for Http1RequestDecoder
impl RefUnwindSafe for Http1RequestDecoder
impl Send for Http1RequestDecoder
impl Sync for Http1RequestDecoder
impl Unpin for Http1RequestDecoder
impl UnwindSafe for Http1RequestDecoder
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