Struct nolock::queues::spsc::bounded::AsyncBoundedSender [−][src]
pub struct AsyncBoundedSender<T> { /* fields omitted */ }
Expand description
An async variant of the BoundedSender
that allows your to efficiently
use this Queue in async Contexts as well.
Created using the async_queue
method
Implementations
pub fn enqueue<'queue>(&'queue mut self, data: T) -> EnqueueFuture<'queue, T>ⓘNotable traits for EnqueueFuture<'queue, T>
impl<'queue, T> Future for EnqueueFuture<'queue, T> type Output = Result<(), (T, EnqueueError)>;
pub fn enqueue<'queue>(&'queue mut self, data: T) -> EnqueueFuture<'queue, T>ⓘNotable traits for EnqueueFuture<'queue, T>
impl<'queue, T> Future for EnqueueFuture<'queue, T> type Output = Result<(), (T, EnqueueError)>;
The async variant of the blocking enqueue
operation on the Non-Async version of the Queue
Attempts to enqueue the given Data on the Queue.
This behaves just like the try_enqueue
operation on the normal sync-BoundedSender
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for AsyncBoundedSender<T>
impl<T> Send for AsyncBoundedSender<T>
impl<T> Sync for AsyncBoundedSender<T>
impl<T> Unpin for AsyncBoundedSender<T>
impl<T> !UnwindSafe for AsyncBoundedSender<T>