pub struct PinnedCapacity<'a> { /* private fields */ }Expand description
Pinned snapshot of a CapacityAdaptiveRing’s current
capacity backing. Send (an Arc lifetime extension), !Sync
(single-owner-at-a-time semantics via std::cell::Cell
marker).
Implementations§
Source§impl<'a> PinnedCapacity<'a>
impl<'a> PinnedCapacity<'a>
Sourcepub fn is_still_valid(&self) -> bool
pub fn is_still_valid(&self) -> bool
Whether this pin’s capacity backing is still the active backing. One Acquire load on the parent’s generation atom.
Sourcepub fn generation(&self) -> u64
pub fn generation(&self) -> u64
Pin generation captured at pin time.
Sourcepub fn ring(&self) -> &Arc<AdaptiveRing> ⓘ
pub fn ring(&self) -> &Arc<AdaptiveRing> ⓘ
Direct access to the pinned AdaptiveRing.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PinnedCapacity<'a>
impl<'a> !Sync for PinnedCapacity<'a>
impl<'a> !UnwindSafe for PinnedCapacity<'a>
impl<'a> Freeze for PinnedCapacity<'a>
impl<'a> Send for PinnedCapacity<'a>
impl<'a> Unpin for PinnedCapacity<'a>
impl<'a> UnsafeUnpin for PinnedCapacity<'a>
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