Struct dfqueue::PeekedData
source · pub struct PeekedData<T>(/* private fields */);
Expand description
A wrapper around data in the queue that allows a DFQueueConsumer
to access the data and mark the queued item as completed.
Automatically Derefs to the inner type &T
, just like Arc does.
Implementations§
source§impl<T> PeekedData<T>
impl<T> PeekedData<T>
pub fn mark_completed(&self)
Trait Implementations§
source§impl<T: Debug> Debug for PeekedData<T>
impl<T: Debug> Debug for PeekedData<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for PeekedData<T>where T: RefUnwindSafe,
impl<T> Send for PeekedData<T>where T: Send + Sync,
impl<T> Sync for PeekedData<T>where T: Send + Sync,
impl<T> Unpin for PeekedData<T>
impl<T> UnwindSafe for PeekedData<T>where T: RefUnwindSafe,
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