Struct Chain
#[must_use = "streams do nothing unless polled"]
pub struct Chain<St1, St2> { /* private fields */ }
Stream for the chain method.
Trait Implementations
impl<'__pin, St1, St2> Unpin for Chain<St1, St2>
where
PinnedFieldsOf<__Origin<'__pin, St1, St2>>: Unpin,
impl<St1, St2> FusedStream for Chain<St1, St2>
where
St1: Stream,
St2: FusedStream<Item = St1::Item>,
fn is_terminated(&self) -> bool
impl<St1, St2> Stream for Chain<St1, St2>
where
St1: Stream,
St2: Stream<Item = St1::Item>,
type Item = <St1 as Stream>::Item;fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>fn size_hint(&self) -> (usize, Option<usize>)
impl<St1: Debug, St2: Debug> Debug for Chain<St1, St2>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<St1, St2> Freeze for Chain<St1, St2>
where
Option<St1>: Freeze,
St2: Freeze,
impl<St1, St2> RefUnwindSafe for Chain<St1, St2>
where
Option<St1>: RefUnwindSafe,
St2: RefUnwindSafe,
impl<St1, St2> Send for Chain<St1, St2>
where
Option<St1>: Send,
St2: Send,
impl<St1, St2> Sync for Chain<St1, St2>
where
Option<St1>: Sync,
St2: Sync,
impl<St1, St2> UnsafeUnpin for Chain<St1, St2>
where
Option<St1>: UnsafeUnpin,
St2: UnsafeUnpin,
impl<St1, St2> UnwindSafe for Chain<St1, St2>
where
Option<St1>: UnwindSafe,
St2: UnwindSafe,
Blanket Implementations
impl<S> TryStreamExt for Chain<St1, St2>
where
S: TryStream + ?Sized,
impl<S, T, E> TryStream for Chain<St1, St2>
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 Chain<St1, St2>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Chain<St1, St2>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Chain<St1, St2>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Chain<St1, St2>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> StreamExt for Chain<St1, St2>
where
T: Stream + ?Sized,
impl<T, U> Into<U> for Chain<St1, St2>
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 Chain<St1, St2>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Chain<St1, St2>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>