pub struct Receiver<T: 'static, S> { /* private fields */ }
Implementations
sourceimpl<T: Transmittable, S: Synchronizer> Receiver<T, S>
impl<T: Transmittable, S: Synchronizer> Receiver<T, S>
sourcepub unsafe fn from_descriptor(d: FifoDescriptor<T>, synchronizer: S) -> Self
pub unsafe fn from_descriptor(d: FifoDescriptor<T>, synchronizer: S) -> Self
Create a Receiver
from a FifoDescriptor
and Synchronizer
.
Safety
In addition to all requirements laid out in Sender::from_descriptor
,
the caller must ensure the following additional requirements:
- The caller must ensure that there is at most one
Receiver
for the queue.
pub fn try_recv(&self) -> Result<Identified<T>, TryRecvError>
pub fn try_iter(&self) -> TryIter<'_, T, S>
pub fn recv(&self) -> Result<Identified<T>, RecvError>
Trait Implementations
Auto Trait Implementations
impl<T, S> !RefUnwindSafe for Receiver<T, S>
impl<T, S> !Sync for Receiver<T, S>
impl<T, S> Unpin for Receiver<T, S> where
S: Unpin,
impl<T, S> !UnwindSafe for Receiver<T, S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more