pub enum ChunkedState {
SizeLine,
ChunkData,
ChunkDataEnd,
Trailer,
Done,
}Expand description
Chunked 解析状态机
Variants§
SizeLine
等待下一个 chunk-size 行
ChunkData
正在读取 chunk-data
ChunkDataEnd
等待 chunk-data 结束 CRLF
Trailer
读取 trailer(可选)
Done
完成
Trait Implementations§
Source§impl Clone for ChunkedState
impl Clone for ChunkedState
Source§fn clone(&self) -> ChunkedState
fn clone(&self) -> ChunkedState
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 moreimpl Copy for ChunkedState
Source§impl Debug for ChunkedState
impl Debug for ChunkedState
impl Eq for ChunkedState
Source§impl Hash for ChunkedState
impl Hash for ChunkedState
Source§impl PartialEq for ChunkedState
impl PartialEq 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 UnsafeUnpin 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