pub struct DriftReport {
pub kind: DriftKind,
pub healthy_free_slots: u32,
pub transition: ClassificationTransition,
pub refresh_attempts: u32,
pub detail: String,
}Expand description
The drift report for admission/proof surfaces.
Fields§
§kind: DriftKind§healthy_free_slots: u32Healthy free slots observed (echoed so the report proves the local choice was not capacity-bound).
transition: ClassificationTransition§refresh_attempts: u32Refresh attempts performed to reach this state.
detail: StringImplementations§
Source§impl DriftReport
impl DriftReport
Sourcepub fn rejection_category(&self) -> Option<AdmissionRejectionCategory>
pub fn rejection_category(&self) -> Option<AdmissionRejectionCategory>
The admission-rejection category for a drift (for aggregation via 6.2).
Sourcepub fn blocks_proof(&self) -> bool
pub fn blocks_proof(&self) -> bool
Whether this drift must fail proof mode with a distinct reason — true only for a persistent drift (refresh could not restore remote placement).
Trait Implementations§
Source§impl Clone for DriftReport
impl Clone for DriftReport
Source§impl Debug for DriftReport
impl Debug for DriftReport
Source§impl<'de> Deserialize<'de> for DriftReport
impl<'de> Deserialize<'de> for DriftReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DriftReport
Source§impl PartialEq for DriftReport
impl PartialEq for DriftReport
Source§impl Serialize for DriftReport
impl Serialize for DriftReport
impl StructuralPartialEq for DriftReport
Auto Trait Implementations§
impl Freeze for DriftReport
impl RefUnwindSafe for DriftReport
impl Send for DriftReport
impl Sync for DriftReport
impl Unpin for DriftReport
impl UnsafeUnpin for DriftReport
impl UnwindSafe for DriftReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.