Struct IntoIter
pub struct IntoIter<T> { pub(in ::sync::mpsc) rx: Receiver<T> }
An owning iterator over messages on a Receiver,
created by into_iter.
This iterator will block whenever next
is called, waiting for a new message, and None will be
returned if the corresponding channel has hung up.
Examples
use channel;
use thread;
let = channel;
spawn;
for x in recv.into_iter
Fields
rx: Receiver<T>
Trait Implementations
impl<T> Iterator for IntoIter<T>
type Item = T;fn next(&mut self) -> Option<T>
impl<T: Debug> Debug for IntoIter<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<T> !Sync for IntoIter<T>
impl<T> Freeze for IntoIter<T>
where
Receiver<T>: Freeze,
impl<T> RefUnwindSafe for IntoIter<T>
where
Receiver<T>: RefUnwindSafe,
impl<T> Send for IntoIter<T>
where
Receiver<T>: Send,
impl<T> Unpin for IntoIter<T>
where
Receiver<T>: Unpin,
impl<T> UnsafeUnpin for IntoIter<T>
where
Receiver<T>: UnsafeUnpin,
impl<T> UnwindSafe for IntoIter<T>
where
Receiver<T>: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for IntoIter<T>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for IntoIter<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IntoIter<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IntoIter<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for IntoIter<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for IntoIter<T>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for IntoIter<T>
impl<T, U> Into<U> for IntoIter<T>
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 IntoIter<T>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for IntoIter<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>