Skip to main content

ArcBBQueue

Struct ArcBBQueue 

Source
pub struct ArcBBQueue<S, C, N>(/* private fields */);
Expand description

A BBQueue wrapped in an Arc

Implementations§

Source§

impl<S: Storage, C: Coord, N: Notifier> ArcBBQueue<S, C, N>

Source

pub fn new_with_storage(sto: S) -> Self

Create a new BBQueue with the given Storage impl

Source§

impl<S: Storage, C: Coord, N: Notifier> ArcBBQueue<S, C, N>

Source

pub fn framed_producer(&self) -> FramedProducer<Arc<BBQueue<S, C, N>>>

Create a new FramedProducer for this BBQueue

Although mixing stream and framed consumer/producers will not result in UB, it will also not work correctly.

Source

pub fn framed_consumer(&self) -> FramedConsumer<Arc<BBQueue<S, C, N>>>

Create a new FramedConsumer for this BBQueue

Although mixing stream and framed consumer/producers will not result in UB, it will also not work correctly.

Source

pub fn stream_producer(&self) -> StreamProducer<Arc<BBQueue<S, C, N>>>

Create a new StreamProducer for this BBQueue

Although mixing stream and framed consumer/producers will not result in UB, it will also not work correctly.

Source

pub fn stream_consumer(&self) -> StreamConsumer<Arc<BBQueue<S, C, N>>>

Create a new StreamConsumer for this BBQueue

Although mixing stream and framed consumer/producers will not result in UB, it will also not work correctly.

Auto Trait Implementations§

§

impl<S, C, N> Freeze for ArcBBQueue<S, C, N>

§

impl<S, C, N> RefUnwindSafe for ArcBBQueue<S, C, N>

§

impl<S, C, N> Send for ArcBBQueue<S, C, N>
where S: Sync + Send, C: Sync + Send, N: Sync + Send,

§

impl<S, C, N> Sync for ArcBBQueue<S, C, N>
where S: Sync + Send, C: Sync + Send, N: Sync + Send,

§

impl<S, C, N> Unpin for ArcBBQueue<S, C, N>

§

impl<S, C, N> UnsafeUnpin for ArcBBQueue<S, C, N>

§

impl<S, C, N> UnwindSafe for ArcBBQueue<S, C, N>

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> 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.