pub struct Queue<'d> { /* private fields */ }Expand description
An inline bounded FIFO of caller-owned waiters with O(1) operations.
Implementations§
Source§impl<'d> Queue<'d>
impl<'d> Queue<'d>
pub const fn new(_: Reference<'d>, capacity: Capacity) -> Self
pub const fn for_conns(driver: Reference<'d>, capacity: Capacity) -> Self
pub fn try_register<'target, 'poll>( &'target self, waiter: Pin<&Waiter<'target, 'd>>, context: &Context<'poll, 'd>, ) -> Result<(), Error<'d>>
pub fn wake(&self, work: Work<'_, 'd>) -> WakeStatus
pub fn wake_one(&self, work: Work<'_, 'd>) -> WakeStatus
pub fn len(&self) -> Length
Auto Trait Implementations§
impl<'d> !Freeze for Queue<'d>
impl<'d> !RefUnwindSafe for Queue<'d>
impl<'d> !Send for Queue<'d>
impl<'d> !Sync for Queue<'d>
impl<'d> !UnwindSafe for Queue<'d>
impl<'d> Forget for Queue<'d>
impl<'d> Move for Queue<'d>
impl<'d> Unpin for Queue<'d>
impl<'d> UnsafeUnpin for Queue<'d>
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