Struct BlockingStream
pub struct BlockingStream<S: Stream + Unpin> { /* private fields */ }
An iterator which blocks on values from a stream until they become available.
Implementations
impl<S: Stream + Unpin> BlockingStream<S>
fn into_inner(self) -> SConvert this
BlockingStreaminto the innerStreamtype.
Trait Implementations
impl<S: Debug + Stream + Unpin> Debug for BlockingStream<S>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S: Stream + Unpin> Deref for BlockingStream<S>
type Target = S;fn deref(&self) -> &Self::Target
impl<S: Stream + Unpin> DerefMut for BlockingStream<S>
fn deref_mut(&mut self) -> &mut Self::Target
impl<S: Stream + Unpin> Iterator for BlockingStream<S>
type Item = <S as Stream>::Item;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)
Auto Trait Implementations
impl<S> Freeze for BlockingStream<S>
where
S: Freeze,
impl<S> RefUnwindSafe for BlockingStream<S>
where
S: RefUnwindSafe,
impl<S> Send for BlockingStream<S>
where
S: Send,
impl<S> Sync for BlockingStream<S>
where
S: Sync,
impl<S> Unpin for BlockingStream<S>
impl<S> UnsafeUnpin for BlockingStream<S>
where
S: UnsafeUnpin,
impl<S> UnwindSafe for BlockingStream<S>
where
S: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for BlockingStream<S>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<P, T> Receiver for BlockingStream<S>
where
P: Deref<Target = T> + ?Sized,
T: ?Sized,
type Target = T;
impl<T> Any for BlockingStream<S>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for BlockingStream<S>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for BlockingStream<S>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for BlockingStream<S>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for BlockingStream<S>
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 BlockingStream<S>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for BlockingStream<S>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>