Enum monoio_http::h1::codec::decoder::NextDecoder
source · [−]pub enum NextDecoder<FDE, SDE, BI>where
FDE: Decoder<Item = BI>,
SDE: Decoder<Item = Option<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
None
Fixed(FDE, FixedPayloadSender<BI>)
Streamed(SDE, StreamPayloadSender<BI>)
Trait Implementations
Auto Trait Implementations
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>where
FDE: Unpin,
SDE: Unpin,
impl<FDE, SDE, BI> !UnwindSafe for NextDecoder<FDE, SDE, BI>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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