pub struct TypedConsumer<S, T, C> { /* private fields */ }Expand description
The consumer half of a typed queue. Single consumer.
Implementations§
Source§impl<S: Store, T, C: Codec<T>> TypedConsumer<S, T, C>
impl<S: Store, T, C: Codec<T>> TypedConsumer<S, T, C>
Sourcepub fn reserve(
&self,
) -> Result<Option<TypedReserved<S, T>>, ReserveError<S::Error>>
pub fn reserve( &self, ) -> Result<Option<TypedReserved<S, T>>, ReserveError<S::Error>>
Reserve and decode the oldest item, or None if there is nothing to deliver.
Auto Trait Implementations§
impl<S, T, C> Freeze for TypedConsumer<S, T, C>
impl<S, T, C> RefUnwindSafe for TypedConsumer<S, T, C>
impl<S, T, C> Send for TypedConsumer<S, T, C>
impl<S, T, C> Sync for TypedConsumer<S, T, C>
impl<S, T, C> Unpin for TypedConsumer<S, T, C>
impl<S, T, C> UnsafeUnpin for TypedConsumer<S, T, C>
impl<S, T, C> UnwindSafe for TypedConsumer<S, T, C>
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