pub struct StreamBody<S> { /* private fields */ }
Implementations§
Source§impl<S> StreamBody<S>
impl<S> StreamBody<S>
pub fn new(stream: S) -> StreamBody<S>
Trait Implementations§
Source§impl<S> Body for StreamBody<S>
impl<S> Body for StreamBody<S>
Source§impl<S> Debug for StreamBody<S>where
S: Debug,
impl<S> Debug for StreamBody<S>where
S: Debug,
Source§impl<S> Default for StreamBody<S>where
S: Default,
impl<S> Default for StreamBody<S>where
S: Default,
Source§fn default() -> StreamBody<S>
fn default() -> StreamBody<S>
Returns the “default value” for a type. Read more
Source§impl<S> IntoResponse for StreamBody<S>
impl<S> IntoResponse for StreamBody<S>
fn into_response(self) -> Response
impl<'__pin, S> Unpin for StreamBody<S>where
<PinnedFieldsOfHelperStruct<__Origin<'__pin, S>> as PinnedFieldsOfHelperTrait>::Actual: Unpin,
Auto Trait Implementations§
impl<S> Freeze for StreamBody<S>where
S: Freeze,
impl<S> RefUnwindSafe for StreamBody<S>where
S: RefUnwindSafe,
impl<S> Send for StreamBody<S>where
S: Send,
impl<S> Sync for StreamBody<S>where
S: Sync,
impl<S> UnwindSafe for StreamBody<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<B> BodyExt for Bwhere
B: Body,
impl<B> BodyExt for Bwhere
B: Body,
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