Struct unbounded_spsc::Receiver
[−]
[src]
pub struct Receiver<T> { /* fields omitted */ }
Methods
impl<T> Receiver<T>
[src]
pub fn try_recv(&self) -> Result<T, TryRecvError>
[src]
Non-blocking receive, returns Err (TryRecvError::Empty)
if buffer was
empty; will continue to receive pending messages from a disconnected
channel until it is empty, at which point further calls to this function
will return Err (TryRecvError::Disconnected)
.
pub fn recv(&self) -> Result<T, RecvError>
[src]
Block waiting if no messages are pending in the buffer.
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>
pub fn capacity(&self) -> usize
[src]
pub fn can_recv(&self) -> bool
[src]
pub fn start_selection(&self, token: SignalToken) -> SelectionResult
[src]
Trait Implementations
impl<T> Debug for Receiver<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
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>
Creates an iterator from a value. Read more
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>
Creates an iterator from a value. Read more