[−][src]Struct unbounded_spsc::Receiver
Implementations
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]
pub fn iter(&self) -> Iter<'_, T>ⓘ
[src]
pub fn try_iter(&self) -> TryIter<'_, T>ⓘ
[src]
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]
impl<T> Drop for Receiver<T>
[src]
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?
fn into_iter(self) -> IntoIter<T>ⓘ
[src]
impl<'a, T> IntoIterator for &'a Receiver<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Receiver<T>
impl<T> Send for Receiver<T> where
T: Send,
T: Send,
impl<T> !Sync for Receiver<T>
impl<T> Unpin for Receiver<T>
impl<T> !UnwindSafe for Receiver<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, 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>,