pub struct CapacityWaitSnapshot { /* private fields */ }Expand description
One coherent observation used to publish a deferred capacity decision.
The audit epochs and exact retry predicate are sampled while holding the coordinator lock once. Callers that inspect a second resource owner must capture this snapshot before that inspection, so a release racing with the inspection is either visible to the inspection or advances this predicate.
Implementations§
Source§impl CapacityWaitSnapshot
impl CapacityWaitSnapshot
pub const fn epochs(&self) -> CapacityEpochs
pub fn wait_condition(&self) -> &CapacityWaitCondition
Trait Implementations§
Source§impl Clone for CapacityWaitSnapshot
impl Clone for CapacityWaitSnapshot
Source§fn clone(&self) -> CapacityWaitSnapshot
fn clone(&self) -> CapacityWaitSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapacityWaitSnapshot
impl Debug for CapacityWaitSnapshot
impl Eq for CapacityWaitSnapshot
Source§impl PartialEq for CapacityWaitSnapshot
impl PartialEq for CapacityWaitSnapshot
Source§impl Serialize for CapacityWaitSnapshot
impl Serialize for CapacityWaitSnapshot
impl StructuralPartialEq for CapacityWaitSnapshot
Auto Trait Implementations§
impl Freeze for CapacityWaitSnapshot
impl RefUnwindSafe for CapacityWaitSnapshot
impl Send for CapacityWaitSnapshot
impl Sync for CapacityWaitSnapshot
impl Unpin for CapacityWaitSnapshot
impl UnsafeUnpin for CapacityWaitSnapshot
impl UnwindSafe for CapacityWaitSnapshot
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