pub enum BoxedStream {
Sized {
stream: Pin<Box<dyn SizedBodyStream>>,
content_length: u64,
},
Unsized {
stream: Pin<Box<dyn UnsizedBodyStream>>,
},
}
Available on crate feature
async
only.Expand description
A boxed async stream type that can either be sized or unsized.
Variants§
Sized
Sized stream with a known content length.
Fields
§
stream: Pin<Box<dyn SizedBodyStream>>
The underlying stream that provides the body data.
Unsized
Unsized stream without a known content length.
Fields
§
stream: Pin<Box<dyn UnsizedBodyStream>>
The underlying stream that provides the body data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoxedStream
impl !RefUnwindSafe for BoxedStream
impl Send for BoxedStream
impl !Sync for BoxedStream
impl Unpin for BoxedStream
impl !UnwindSafe for BoxedStream
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