pub struct BodyDecodeWithContinueState { /* private fields */ }
Implementations
sourceimpl BodyDecodeWithContinueState
impl BodyDecodeWithContinueState
pub fn from_head(head: &RequestHead<'_>) -> Result<Self>
pub fn new(version: Version, length: Option<u64>, send_continue: bool) -> Self
pub fn from_headers(headers: &HeaderMap, version: Version) -> Result<Self>
pub fn into_async_read<IO: AsyncRead + AsyncWrite + Unpin>(
self,
io: IO
) -> BodyDecodeWithContinue<IO>
pub fn poll_read<IO: AsyncRead + AsyncWrite + Unpin>(
&mut self,
cx: &mut Context<'_>,
buf: &mut [u8],
io: &mut IO
) -> Poll<Result<usize>>
Auto Trait Implementations
impl !RefUnwindSafe for BodyDecodeWithContinueState
impl Send for BodyDecodeWithContinueState
impl Sync for BodyDecodeWithContinueState
impl Unpin for BodyDecodeWithContinueState
impl !UnwindSafe for BodyDecodeWithContinueState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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