pub struct ChainMpscProducer { /* private fields */ }Expand description
MPSC producer handle over an explicit (pool, queue) pair.
This is a building block for layouts that embed multiple MPSC queues sharing the same slot pool.
Implementations§
Source§impl ChainMpscProducer
impl ChainMpscProducer
Sourcepub fn publish_with<F, E>(&self, f: F) -> Result<(), PublishWithError<E>>
pub fn publish_with<F, E>(&self, f: F) -> Result<(), PublishWithError<E>>
Publish by writing directly into the slot buffer.
Sourcepub fn try_publish_slot(&self, slot: EventsSlot) -> Result<(), PublishSlotError>
pub fn try_publish_slot(&self, slot: EventsSlot) -> Result<(), PublishSlotError>
Publish a previously-received slot by forwarding its slot index into this producer’s queue.
Sourcepub fn publish_slot(&self, slot: EventsSlot) -> Result<(), Error>
pub fn publish_slot(&self, slot: EventsSlot) -> Result<(), Error>
Publish a previously-received slot, discarding it on failure.
Trait Implementations§
impl Send for ChainMpscProducer
impl Sync for ChainMpscProducer
Auto Trait Implementations§
impl Freeze for ChainMpscProducer
impl !RefUnwindSafe for ChainMpscProducer
impl Unpin for ChainMpscProducer
impl !UnwindSafe for ChainMpscProducer
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