pub struct WorkQueue<T: Clone> { /* private fields */ }Implementations§
Source§impl<T: Clone> WorkQueue<T>
impl<T: Clone> WorkQueue<T>
pub fn create() -> WorkQueue<T>
pub fn add(&mut self, item: T)
pub fn current_value(&self) -> Option<T>
pub fn current_ref(&self) -> Option<&T>
pub fn next_value(&mut self) -> Option<T>
pub fn next_ref(&mut self) -> Option<&T>
pub fn increment(&mut self)
pub fn clean(&mut self)
pub fn remaining(&self) -> usize
pub fn dirty_count(&self) -> usize
Auto Trait Implementations§
impl<T> Freeze for WorkQueue<T>
impl<T> RefUnwindSafe for WorkQueue<T>where
T: RefUnwindSafe,
impl<T> Send for WorkQueue<T>where
T: Send,
impl<T> Sync for WorkQueue<T>where
T: Sync,
impl<T> Unpin for WorkQueue<T>where
T: Unpin,
impl<T> UnwindSafe for WorkQueue<T>where
T: UnwindSafe,
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