Struct IntoStream
#[must_use = "futures/streams/sinks do nothing unless you `.await` or poll them"]
pub struct IntoStream<F> { /* private fields */ }
Stream for the into_stream method.
Trait Implementations
impl<'__pin, F> Unpin for IntoStream<F>
where
PinnedFieldsOf<__Origin<'__pin, F>>: Unpin,
impl<F> Debug for IntoStream<F>
where
Once<F>: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<F> FusedStream for IntoStream<F>
where
Once<F>: FusedStream,
fn is_terminated(&self) -> bool
impl<F> Stream for IntoStream<F>
where
Once<F>: Stream,
type Item = <Once<F> as Stream>::Item;fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>fn size_hint(&self) -> (usize, Option<usize>)
Auto Trait Implementations
impl<F> Freeze for IntoStream<F>
where
Once<F>: Freeze,
impl<F> RefUnwindSafe for IntoStream<F>
where
Once<F>: RefUnwindSafe,
impl<F> Send for IntoStream<F>
where
Once<F>: Send,
impl<F> Sync for IntoStream<F>
where
Once<F>: Sync,
impl<F> UnsafeUnpin for IntoStream<F>
where
Once<F>: UnsafeUnpin,
impl<F> UnwindSafe for IntoStream<F>
where
Once<F>: UnwindSafe,
Blanket Implementations
impl<S> TryStreamExt for IntoStream<F>
where
S: TryStream + ?Sized,
impl<S, T, E> TryStream for IntoStream<F>
where
S: Stream<Item = Result<T, E>> + ?Sized,
type Ok = T;type Error = E;fn try_poll_next(self: Pin<&mut S>, cx: &mut Context<'_>) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>
impl<T> Any for IntoStream<F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IntoStream<F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IntoStream<F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for IntoStream<F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> StreamExt for IntoStream<F>
where
T: Stream + ?Sized,
impl<T, U> Into<U> for IntoStream<F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for IntoStream<F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for IntoStream<F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>