pub struct DeliveryToken<'a, 'rx, E, R: ReceiverBackend, const MAX_STREAMS: usize> { /* private fields */ }Expand description
Zero-copy delivery token returned by
SrsppRxHandle::wait_for_message.
Holds &mut SrsppRxHandle, preventing another receive while
the token is alive. The cell is not borrowed — the
driver freely delivers new segments in the background.
Call consume with a synchronous closure to
read the message and release the token in one step.
Implementations§
Source§impl<'a, 'rx, E: Clone, R: ReceiverBackend, const MAX_STREAMS: usize> DeliveryToken<'a, 'rx, E, R, MAX_STREAMS>
impl<'a, 'rx, E: Clone, R: ReceiverBackend, const MAX_STREAMS: usize> DeliveryToken<'a, 'rx, E, R, MAX_STREAMS>
Auto Trait Implementations§
impl<'a, 'rx, E, R, const MAX_STREAMS: usize> Freeze for DeliveryToken<'a, 'rx, E, R, MAX_STREAMS>
impl<'a, 'rx, E, R, const MAX_STREAMS: usize> !RefUnwindSafe for DeliveryToken<'a, 'rx, E, R, MAX_STREAMS>
impl<'a, 'rx, E, R, const MAX_STREAMS: usize> !Send for DeliveryToken<'a, 'rx, E, R, MAX_STREAMS>
impl<'a, 'rx, E, R, const MAX_STREAMS: usize> !Sync for DeliveryToken<'a, 'rx, E, R, MAX_STREAMS>
impl<'a, 'rx, E, R, const MAX_STREAMS: usize> Unpin for DeliveryToken<'a, 'rx, E, R, MAX_STREAMS>
impl<'a, 'rx, E, R, const MAX_STREAMS: usize> UnsafeUnpin for DeliveryToken<'a, 'rx, E, R, MAX_STREAMS>
impl<'a, 'rx, E, R, const MAX_STREAMS: usize> !UnwindSafe for DeliveryToken<'a, 'rx, E, R, MAX_STREAMS>
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