pub struct ChainMpscConsumer { /* private fields */ }Expand description
MPSC consumer handle over an explicit (pool, queue) pair.
Implementations§
Source§impl ChainMpscConsumer
impl ChainMpscConsumer
Sourcepub fn try_recv_into(&self, out: &mut [u8]) -> Result<Option<usize>, Error>
pub fn try_recv_into(&self, out: &mut [u8]) -> Result<Option<usize>, Error>
Receive into a caller-provided buffer.
Sourcepub fn try_recv_with<F, R, E>(
&self,
f: F,
) -> Result<Option<R>, RecvWithError<E>>
pub fn try_recv_with<F, R, E>( &self, f: F, ) -> Result<Option<R>, RecvWithError<E>>
Receive by borrowing the slot bytes for the duration of f.
Sourcepub fn try_recv_slot(&self) -> Result<Option<EventsSlot>, Error>
pub fn try_recv_slot(&self) -> Result<Option<EventsSlot>, Error>
Receive a message as an owned slot handle.
Trait Implementations§
impl Send for ChainMpscConsumer
Auto Trait Implementations§
impl Freeze for ChainMpscConsumer
impl !RefUnwindSafe for ChainMpscConsumer
impl !Sync for ChainMpscConsumer
impl Unpin for ChainMpscConsumer
impl !UnwindSafe for ChainMpscConsumer
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