Skip to main content

MpmcQueueWrapper

Struct MpmcQueueWrapper 

Source
pub struct MpmcQueueWrapper<T> { /* private fields */ }

Implementations§

Source§

impl<T> MpmcQueueWrapper<T>

Source

pub fn new<H: Handle<HandleInner = Self>>( max_accessors: usize, size: usize, ) -> H

Source

pub unsafe fn push( &self, id: &mut MpmcQueueAccessorId, value: T, ) -> StartSend<T, SendError<T>>

Source

pub unsafe fn pop(&self, id: &mut MpmcQueueAccessorId) -> Async<Option<T>>

Source

pub unsafe fn close(&self, id: &mut MpmcQueueAccessorId)

Source

pub unsafe fn inc_sender_count(&self)

Source

pub unsafe fn dec_sender_count(&self, id: &mut MpmcQueueAccessorId)

Source

pub unsafe fn inc_receiver_count(&self)

Source

pub unsafe fn dec_receiver_count(&self, id: &mut MpmcQueueAccessorId)

Trait Implementations§

Source§

impl<T: Debug> Debug for MpmcQueueWrapper<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> HandleInner<MpmcQueueAccessorId> for MpmcQueueWrapper<T>

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>
where T: Send + Sync,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> Like<T> for U
where U: Into<T> + From<T> + Borrow<T> + BorrowMut<T>,

Source§

fn virtual_borrow<R, F: FnOnce(&mut Self) -> R>(value: T, f: F) -> R

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.