pub struct ChainSpscSender { /* private fields */ }Expand description
SPSC sender handle over an explicit (pool, queue) pair.
This is a building block for layouts that embed multiple SPSC queues sharing the same slot pool.
Implementations§
Source§impl ChainSpscSender
impl ChainSpscSender
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 sender’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 ChainSpscSender
Auto Trait Implementations§
impl Freeze for ChainSpscSender
impl !RefUnwindSafe for ChainSpscSender
impl !Sync for ChainSpscSender
impl Unpin for ChainSpscSender
impl !UnwindSafe for ChainSpscSender
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