pub struct MpmcQueueWrapper<T> { /* private fields */ }Implementations§
Source§impl<T> MpmcQueueWrapper<T>
impl<T> MpmcQueueWrapper<T>
pub fn new<H: Handle<HandleInner = Self>>( max_accessors: usize, size: usize, ) -> H
pub unsafe fn push( &self, id: &mut MpmcQueueAccessorId, value: T, ) -> StartSend<T, SendError<T>>
pub unsafe fn pop(&self, id: &mut MpmcQueueAccessorId) -> Async<Option<T>>
pub unsafe fn close(&self, id: &mut MpmcQueueAccessorId)
pub unsafe fn inc_sender_count(&self)
pub unsafe fn dec_sender_count(&self, id: &mut MpmcQueueAccessorId)
pub unsafe fn inc_receiver_count(&self)
pub unsafe fn dec_receiver_count(&self, id: &mut MpmcQueueAccessorId)
Trait Implementations§
Source§impl<T: Debug> Debug for MpmcQueueWrapper<T>
impl<T: Debug> Debug for MpmcQueueWrapper<T>
Source§impl<T> HandleInner<MpmcQueueAccessorId> for MpmcQueueWrapper<T>
impl<T> HandleInner<MpmcQueueAccessorId> for MpmcQueueWrapper<T>
type IdAllocator = IndexAllocator
fn id_allocator(&self) -> &IndexAllocator
fn raise_id_limit(&mut self, new_limit: usize)
fn id_limit(&self) -> usize
Auto Trait Implementations§
impl<T> !Freeze for MpmcQueueWrapper<T>
impl<T> !RefUnwindSafe for MpmcQueueWrapper<T>
impl<T> Send for MpmcQueueWrapper<T>where
T: Send,
impl<T> Sync for MpmcQueueWrapper<T>
impl<T> Unpin for MpmcQueueWrapper<T>where
T: Unpin,
impl<T> UnsafeUnpin for MpmcQueueWrapper<T>
impl<T> !UnwindSafe for MpmcQueueWrapper<T>
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