pub struct Stream<S>{ /* private fields */ }Implementations§
Source§impl<II> Stream<IterStream<II>>
impl<II> Stream<IterStream<II>>
pub fn from_chunks<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = Shared, IntoIter = II>,
Trait Implementations§
Source§impl<S> IntoServeResponse<'static> for Stream<S>
impl<S> IntoServeResponse<'static> for Stream<S>
fn into_serve_response(self) -> ServeInner<'static>
Source§impl<'req, S> Shape<'req> for Stream<S>
impl<'req, S> Shape<'req> for Stream<S>
type StreamInner = S
fn write_head_stream( self, out: &mut [u8], date: &[u8; 29], ) -> Option<(usize, S)>
fn write_into_slice(&self, out: &mut [u8], date: &[u8; 29]) -> Option<usize>
fn preserialize(&self) -> (Vec<u8>, usize)
fn write_head_only( &self, out: &mut [u8], date: &[u8; 29], ) -> Option<(usize, &'static [u8])>
fn write_head_split( self, out: &mut [u8], date: &[u8; 29], ) -> Option<(usize, Shared)>
fn preserialize_static(&self) -> Option<(Vec<u8>, usize, &'static [u8])>
fn body_for_gzip(&self) -> Option<&[u8]>
fn apply_gzip_body(&mut self, _compressed: Shared)
fn status(&self) -> StatusCode
fn body_bytes(&self) -> &[u8] ⓘ
fn headers_wire(&self) -> Shared
Auto Trait Implementations§
impl<S> !RefUnwindSafe for Stream<S>
impl<S> !Send for Stream<S>
impl<S> !Sync for Stream<S>
impl<S> !UnwindSafe for Stream<S>
impl<S> Freeze for Stream<S>where
S: Freeze,
impl<S> Unpin for Stream<S>where
S: Unpin,
impl<S> UnsafeUnpin for Stream<S>where
S: UnsafeUnpin,
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