pub struct ArcSwapStore<T> { /* private fields */ }Expand description
Wait-free reads via arc_swap::ArcSwap.
load(): wait-free, returns clonedTfrom a guard (no allocation).store(): allocates oneArc, atomically swaps.
Best for: read-99%/write-1% data like themes and capabilities.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for ArcSwapStore<T>
impl<T> RefUnwindSafe for ArcSwapStore<T>where
T: RefUnwindSafe,
impl<T> Send for ArcSwapStore<T>
impl<T> Sync for ArcSwapStore<T>
impl<T> Unpin for ArcSwapStore<T>
impl<T> UnsafeUnpin for ArcSwapStore<T>
impl<T> UnwindSafe for ArcSwapStore<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