pub struct ConsistencyObservation { /* private fields */ }Expand description
Immutable canonical current evidence; not persisted proof or a fence-release capability.
Implementations§
Source§impl ConsistencyObservation
impl ConsistencyObservation
Sourcepub fn new(
input: ConsistencyObservationInput,
) -> Result<Self, ConsistencyObservationError>
pub fn new( input: ConsistencyObservationInput, ) -> Result<Self, ConsistencyObservationError>
Normalize/sort exact targets, require a nonempty bounded unique inventory-backed set.
§Errors
Rejects target count, malformed identities, canonical duplicates or unknown targets.
Sourcepub const fn request(&self) -> &ArtifactChecksumRecord
pub const fn request(&self) -> &ArtifactChecksumRecord
Read current request identity.
Sourcepub const fn context(&self) -> &PlanContextRecord
pub const fn context(&self) -> &PlanContextRecord
Read actually observed canonical context.
Sourcepub const fn inventory(&self) -> &InventoryRecord
pub const fn inventory(&self) -> &InventoryRecord
Read complete actual current inventory.
Sourcepub fn targets(&self) -> &[TargetCaptureEvidence]
pub fn targets(&self) -> &[TargetCaptureEvidence]
Read exact canonical actual target state/evidence rows.
Sourcepub const fn membership_revision(&self) -> Option<&ArtifactChecksumRecord>
pub const fn membership_revision(&self) -> Option<&ArtifactChecksumRecord>
Read actual membership revision; equality alone grants no continuity.
Sourcepub const fn consistency(&self) -> &ConsistencyEvidence
pub const fn consistency(&self) -> &ConsistencyEvidence
Read current evidence lane.
Sourcepub const fn evidence(&self) -> &ArtifactChecksumRecord
pub const fn evidence(&self) -> &ArtifactChecksumRecord
Read opaque qualified observation evidence.
Sourcepub const fn remote_observations(&self) -> u32
pub const fn remote_observations(&self) -> u32
Read actual call reporting without spending/replenishment.
Trait Implementations§
Source§impl Clone for ConsistencyObservation
impl Clone for ConsistencyObservation
Auto Trait Implementations§
impl Freeze for ConsistencyObservation
impl RefUnwindSafe for ConsistencyObservation
impl Send for ConsistencyObservation
impl Sync for ConsistencyObservation
impl Unpin for ConsistencyObservation
impl UnsafeUnpin for ConsistencyObservation
impl UnwindSafe for ConsistencyObservation
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