pub enum NextDecoder<FDE, SDE, BI>{
None,
Fixed(FDE, FixedPayloadSender<BI>),
Streamed(SDE, StreamPayloadSender<BI>),
}
Expand description
NextDecoder maybe None, Fixed or Streamed. Mainly designed for no body, fixed-length body and chunked body. But generally, NextDecoder can be used to represent 0, 1, or more than 1 things to decode.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<FDE, SDE, BI> Freeze for NextDecoder<FDE, SDE, BI>
impl<FDE, SDE, BI> !RefUnwindSafe for NextDecoder<FDE, SDE, BI>
impl<FDE, SDE, BI> !Send for NextDecoder<FDE, SDE, BI>
impl<FDE, SDE, BI> !Sync for NextDecoder<FDE, SDE, BI>
impl<FDE, SDE, BI> Unpin for NextDecoder<FDE, SDE, BI>
impl<FDE, SDE, BI> !UnwindSafe for NextDecoder<FDE, SDE, BI>
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