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>
impl<S: Storage, C: Coord, N: Notifier> ArcBBQueue<S, C, N>
Sourcepub fn new_with_storage(sto: S) -> Self
pub fn new_with_storage(sto: S) -> Self
Source§impl<S: Storage, C: Coord, N: Notifier> ArcBBQueue<S, C, N>
impl<S: Storage, C: Coord, N: Notifier> ArcBBQueue<S, C, N>
Sourcepub fn framed_producer(&self) -> FramedProducer<Arc<BBQueue<S, C, N>>>
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.
Sourcepub fn framed_consumer(&self) -> FramedConsumer<Arc<BBQueue<S, C, N>>>
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.
Sourcepub fn stream_producer(&self) -> StreamProducer<Arc<BBQueue<S, C, N>>>
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.
Sourcepub fn stream_consumer(&self) -> StreamConsumer<Arc<BBQueue<S, C, N>>>
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>
impl<S, C, N> Sync for ArcBBQueue<S, C, N>
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> 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