Struct ipc_queue::AsyncSender
source · [−]pub struct AsyncSender<T: 'static, S> { /* private fields */ }
Implementations
sourceimpl<T: Transmittable, S: AsyncSynchronizer> AsyncSender<T, S>
impl<T: Transmittable, S: AsyncSynchronizer> AsyncSender<T, S>
pub async fn send(&self, val: Identified<T>) -> Result<(), SendError>
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
sourceimpl<T, S: Clone> Clone for AsyncSender<T, S>
impl<T, S: Clone> Clone for AsyncSender<T, S>
impl<T: Send, S: Send> Send for AsyncSender<T, S>
impl<T: Send, S: Sync> Sync for AsyncSender<T, S>
Auto Trait Implementations
impl<T, S> !RefUnwindSafe for AsyncSender<T, S>
impl<T, S> Unpin for AsyncSender<T, S> where
S: Unpin,
impl<T, S> !UnwindSafe for AsyncSender<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