[−][src]Struct may::sync::mpsc::Receiver
Methods
impl<T> Receiver<T>
[src]
///////////////////////////////////////////////////////////////////////////// Receiver /////////////////////////////////////////////////////////////////////////////
pub fn try_recv(&self) -> Result<T, TryRecvError>
[src]
pub fn recv(&self) -> Result<T, RecvError>
[src]
pub fn recv_timeout(&self, timeout: Duration) -> Result<T, RecvTimeoutError>
[src]
ⓘImportant traits for Iter<'a, T>pub fn iter(&self) -> Iter<T>
[src]
ⓘImportant traits for Iter<'a, T>
ⓘImportant traits for TryIter<'a, T>pub fn try_iter(&self) -> TryIter<T>
[src]
ⓘImportant traits for TryIter<'a, T>
Trait Implementations
impl<'a, T> IntoIterator for &'a Receiver<T>
[src]
type Item = T
The type of the elements being iterated over.
type IntoIter = Iter<'a, T>
Which kind of iterator are we turning this into?
ⓘImportant traits for Iter<'a, T>fn into_iter(self) -> Iter<'a, T>
[src]
ⓘImportant traits for Iter<'a, T>
impl<T> IntoIterator for Receiver<T>
[src]
type Item = T
The type of the elements being iterated over.
type IntoIter = IntoIter<T>
Which kind of iterator are we turning this into?
ⓘImportant traits for IntoIter<T>fn into_iter(self) -> IntoIter<T>
[src]
ⓘImportant traits for IntoIter<T>
impl<T> Drop for Receiver<T>
[src]
impl<T: Send> Send for Receiver<T>
[src]
impl<T> Debug for Receiver<T>
[src]
Auto Trait Implementations
impl<T> Sync for Receiver<T> where
T: Send,
T: Send,
impl<T> Unpin for Receiver<T>
impl<T> !RefUnwindSafe for Receiver<T>
impl<T> !UnwindSafe for Receiver<T>
Blanket Implementations
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,