enum ChunkedState {
Show 13 variants
Start,
Size,
SizeLws,
Extension,
SizeLf,
Body,
BodyCr,
BodyLf,
Trailer,
TrailerLf,
EndCr,
EndLf,
End,
}
Variants§
Implementations§
source§impl ChunkedState
impl ChunkedState
fn new() -> ChunkedState
fn step<R: MemRead>( &self, cx: &mut Context<'_>, body: &mut R, size: &mut u64, extensions_cnt: &mut u64, buf: &mut Option<Bytes>, ) -> Poll<Result<ChunkedState, Error>>
fn read_start<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, size: &mut u64, ) -> Poll<Result<ChunkedState, Error>>
fn read_size<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, size: &mut u64, ) -> Poll<Result<ChunkedState, Error>>
fn read_size_lws<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, ) -> Poll<Result<ChunkedState, Error>>
fn read_extension<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, extensions_cnt: &mut u64, ) -> Poll<Result<ChunkedState, Error>>
fn read_size_lf<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, size: u64, ) -> Poll<Result<ChunkedState, Error>>
fn read_body<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, rem: &mut u64, buf: &mut Option<Bytes>, ) -> Poll<Result<ChunkedState, Error>>
fn read_body_cr<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, ) -> Poll<Result<ChunkedState, Error>>
fn read_body_lf<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, ) -> Poll<Result<ChunkedState, Error>>
fn read_trailer<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, ) -> Poll<Result<ChunkedState, Error>>
fn read_trailer_lf<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, ) -> Poll<Result<ChunkedState, Error>>
fn read_end_cr<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, ) -> Poll<Result<ChunkedState, Error>>
fn read_end_lf<R: MemRead>( cx: &mut Context<'_>, rdr: &mut R, ) -> Poll<Result<ChunkedState, Error>>
Trait Implementations§
source§impl Clone for ChunkedState
impl Clone for ChunkedState
source§fn clone(&self) -> ChunkedState
fn clone(&self) -> ChunkedState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChunkedState
impl Debug for ChunkedState
source§impl PartialEq for ChunkedState
impl PartialEq for ChunkedState
impl Copy for ChunkedState
impl StructuralPartialEq for ChunkedState
Auto Trait Implementations§
impl Freeze for ChunkedState
impl RefUnwindSafe for ChunkedState
impl Send for ChunkedState
impl Sync for ChunkedState
impl Unpin for ChunkedState
impl UnwindSafe for ChunkedState
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)