pub struct CallbackQueueReceiver<S, C> { /* private fields */ }
Expand description
A receiver-side async-enabled queue abstraction.
Implementations§
source§impl<S: Copy, C: Copy> CallbackQueueReceiver<S, C>
impl<S: Copy, C: Copy> CallbackQueueReceiver<S, C>
sourcepub async fn handle<F, Fut>(&self, f: F) -> Result<(), QueueError>
pub async fn handle<F, Fut>(&self, f: F) -> Result<(), QueueError>
Handle a request in a closure that returns a completion.
sourcepub async fn receive(&self) -> Result<(u32, S), QueueError>
pub async fn receive(&self) -> Result<(u32, S), QueueError>
Receive a request without immediately returning a completion.
Auto Trait Implementations§
impl<S, C> Freeze for CallbackQueueReceiver<S, C>
impl<S, C> !ObjSafe for CallbackQueueReceiver<S, C>
impl<S, C> !RefUnwindSafe for CallbackQueueReceiver<S, C>
impl<S, C> Send for CallbackQueueReceiver<S, C>
impl<S, C> Sync for CallbackQueueReceiver<S, C>
impl<S, C> Unpin for CallbackQueueReceiver<S, C>
impl<S, C> UnwindSafe for CallbackQueueReceiver<S, C>
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