pub struct BodyDecodeWithContinueState { /* private fields */ }Implementations§
Source§impl 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<Self, IO>
pub fn as_async_read<IO: AsyncRead + AsyncWrite + Unpin>( &mut self, io: IO, ) -> BodyDecodeWithContinue<&mut Self, 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 !UnwindSafe for BodyDecodeWithContinueState
impl Freeze for BodyDecodeWithContinueState
impl Send for BodyDecodeWithContinueState
impl Sync for BodyDecodeWithContinueState
impl Unpin for BodyDecodeWithContinueState
impl UnsafeUnpin for BodyDecodeWithContinueState
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