enum Kind {
Once(Option<Bytes>),
Chan {
content_length: DecodedLength,
want_tx: Sender,
data_rx: Receiver<Result<Bytes, Error>>,
trailers_rx: Receiver<HeaderMap>,
},
H2 {
ping: Recorder,
content_length: DecodedLength,
recv: RecvStream,
},
Wrapped(SyncWrapper<Pin<Box<dyn Stream<Item = Result<Bytes, Box<dyn StdError + Send + Sync>>> + Send>>>),
}
Variants§
Once(Option<Bytes>)
Chan
Fields
§
content_length: DecodedLength
H2
Wrapped(SyncWrapper<Pin<Box<dyn Stream<Item = Result<Bytes, Box<dyn StdError + Send + Sync>>> + Send>>>)
Auto Trait Implementations§
impl !Freeze for Kind
impl !RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl !UnwindSafe for Kind
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