Struct StreamBody
struct StreamBody<S> { ... }
A body created from a Stream.
Implementations
impl<S> StreamBody<S>
fn new(stream: S) -> SelfCreate a new
StreamBody.
impl<'__pin, S> Unpin for StreamBody<S>
impl<S> Freeze for StreamBody<S>
impl<S> RefUnwindSafe for StreamBody<S>
impl<S> Send for StreamBody<S>
impl<S> Sync for StreamBody<S>
impl<S> UnsafeUnpin for StreamBody<S>
impl<S> UnwindSafe for StreamBody<S>
impl<S, D, E> Body for StreamBody<S>
fn poll_frame(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Result<Frame<<Self as >::Data>, <Self as >::Error>>>
impl<S, T, E> TryStream for StreamBody<S>
fn try_poll_next(self: Pin<&mut S>, cx: &mut Context<'_>) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>
impl<S: $crate::clone::Clone> Clone for StreamBody<S>
fn clone(self: &Self) -> StreamBody<S>
impl<S: $crate::fmt::Debug> Debug for StreamBody<S>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<S: $crate::marker::Copy> Copy for StreamBody<S>
impl<S: Stream> Stream for StreamBody<S>
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<<Self as >::Item>>fn size_hint(self: &Self) -> (usize, Option<usize>)
impl<T> Any for StreamBody<S>
fn type_id(self: &Self) -> TypeId
impl<T> BodyExt for StreamBody<S>
impl<T> Borrow for StreamBody<S>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for StreamBody<S>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for StreamBody<S>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for StreamBody<S>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for StreamBody<S>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for StreamBody<S>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for StreamBody<S>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for StreamBody<S>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>