Struct async_http_codec::BodyDecodeState
source · [−]pub struct BodyDecodeState { /* private fields */ }
Implementations
sourceimpl 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<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
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