Struct ipc_queue::AsyncReceiver
source · pub struct AsyncReceiver<T: 'static, S> { /* private fields */ }
Implementations§
source§impl<T: Transmittable, S: AsyncSynchronizer> AsyncReceiver<T, S>
impl<T: Transmittable, S: AsyncSynchronizer> AsyncReceiver<T, S>
pub async fn recv(&self) -> Result<Identified<T>, RecvError>
pub fn position_monitor(&self) -> PositionMonitor<T>
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§
Auto Trait Implementations§
impl<T, S> Freeze for AsyncReceiver<T, S>where
S: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more