pub struct BodyDecodeState { /* private fields */ }
Implementations§
Source§impl BodyDecodeState
impl BodyDecodeState
pub fn from_headers(headers: &HeaderMap) -> Result<Self>
pub fn new(length: Option<u64>) -> Self
pub fn into_async_read<IO: AsyncRead + Unpin>( self, transport: IO, ) -> BodyDecode<Self, IO>
pub fn as_async_read<IO: AsyncRead + Unpin>( &mut self, transport: IO, ) -> BodyDecode<&mut Self, IO>
pub fn poll_read<IO: AsyncRead + Unpin>( &mut self, transport: &mut IO, cx: &mut Context<'_>, buf: &mut [u8], ) -> Poll<Result<usize>>
Auto Trait Implementations§
impl Freeze for BodyDecodeState
impl RefUnwindSafe for BodyDecodeState
impl Send for BodyDecodeState
impl Sync for BodyDecodeState
impl Unpin for BodyDecodeState
impl UnwindSafe for BodyDecodeState
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