Struct ipc_queue::AsyncReceiver
source · [−]pub struct AsyncReceiver<T: 'static, S> { /* private fields */ }
Implementations
sourceimpl<T: Transmittable, S: AsyncSynchronizer> AsyncReceiver<T, S>
impl<T: Transmittable, S: AsyncSynchronizer> AsyncReceiver<T, S>
pub async fn recv(&self) -> Result<Identified<T>, RecvError>
sourcepub fn into_descriptor_guard(self) -> DescriptorGuard<T>
pub fn into_descriptor_guard(self) -> DescriptorGuard<T>
Consumes self
and returns a DescriptorGuard.
The returned guard can be used to make FifoDescriptor
s that remain
valid as long as the guard is not dropped.
Trait Implementations
impl<T: Send, S: Send> Send for AsyncReceiver<T, S>
Auto Trait Implementations
impl<T, S> !RefUnwindSafe for AsyncReceiver<T, S>
impl<T, S> !Sync for AsyncReceiver<T, S>
impl<T, S> Unpin for AsyncReceiver<T, S> where
S: Unpin,
impl<T, S> !UnwindSafe for AsyncReceiver<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