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