Struct async_http_codec::BodyDecodeState
source · 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 poll_read<IO: AsyncRead + Unpin>( &mut self, transport: &mut IO, cx: &mut Context<'_>, buf: &mut [u8] ) -> Poll<Result<usize>>
Auto Trait Implementations§
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