pub struct AsyncQueue<T: Copy, const N: usize> { /* private fields */ }Expand description
Async wrapper around an ove::Queue.
Implementations§
Source§impl<T: Copy, const N: usize> AsyncQueue<T, N>
impl<T: Copy, const N: usize> AsyncQueue<T, N>
Sourcepub const fn new(inner: Queue<T, N>) -> Self
pub const fn new(inner: Queue<T, N>) -> Self
Wrap a queue for async use. See Self::arm for the lifetime
constraint.
Sourcepub fn arm(&'static self) -> Result<()>
pub fn arm(&'static self) -> Result<()>
Register the C-side notify callback. Must be called exactly once after the wrapper reaches its final ’static location.
Trait Implementations§
impl<T: Copy + Send, const N: usize> Send for AsyncQueue<T, N>
impl<T: Copy + Send, const N: usize> Sync for AsyncQueue<T, N>
Auto Trait Implementations§
impl<T, const N: usize> !Freeze for AsyncQueue<T, N>
impl<T, const N: usize> !RefUnwindSafe for AsyncQueue<T, N>
impl<T, const N: usize> Unpin for AsyncQueue<T, N>where
T: Unpin,
impl<T, const N: usize> UnsafeUnpin for AsyncQueue<T, N>
impl<T, const N: usize> UnwindSafe for AsyncQueue<T, N>where
T: UnwindSafe,
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