pub struct ChunkedDecoder {
pub state: ChunkedState,
pub remaining: u64,
pub current_chunk_size: u64,
pub total_decoded: u64,
pub max_total: u64,
pub saw_last: bool,
/* private fields */
}Expand description
Chunked 解码器
Fields§
§state: ChunkedState当前状态
remaining: u64剩余 chunk 字节数
current_chunk_size: u64当前 chunk 大小
total_decoded: u64已解码总字节数
max_total: u64最大允许字节数
saw_last: bool是否已遇到 0 大小块
Implementations§
Trait Implementations§
Source§impl Clone for ChunkedDecoder
impl Clone for ChunkedDecoder
Source§fn clone(&self) -> ChunkedDecoder
fn clone(&self) -> ChunkedDecoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChunkedDecoder
impl RefUnwindSafe for ChunkedDecoder
impl Send for ChunkedDecoder
impl Sync for ChunkedDecoder
impl Unpin for ChunkedDecoder
impl UnsafeUnpin for ChunkedDecoder
impl UnwindSafe for ChunkedDecoder
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