Struct async_map::single_writer_versioned::Quitter
source · pub struct Quitter<T>where
T: Data,{ /* private fields */ }
Expand description
Quits the updated task backing the data structure. Though not necessary (see notes) it allows the the data structure to become invalidated for updates, which may speed up dropping of references to it by acting as a signal to reference holders.
Some notes:
- Any previously dispatched updates will be processed before the map task is quit
- As long as references to the Versioned itself, the data will not be dropped. In other words, this does not free any memory.
- Conversely, when all references are dropped the memory and the task will also be dropped. Thus, quitting is not necessary.
Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Quitter<T>
impl<T> Send for Quitter<T>
impl<T> Sync for Quitter<T>
impl<T> Unpin for Quitter<T>
impl<T> !UnwindSafe for Quitter<T>
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