pub struct Coverage<'r, 'a> { /* private fields */ }Expand description
Qualified absence coverage with accounted original-source contributors. Complete reason coverage alone is not a whole certificate trust verdict; caller still owns current-source selection and authenticated path provenance.
Implementations§
Source§impl<'r, 'a> Coverage<'r, 'a>
impl<'r, 'a> Coverage<'r, 'a>
Sourcepub fn new(first: AbsenceEvidence<'r, 'a>, execution: &Memory) -> Result<Self>
pub fn new(first: AbsenceEvidence<'r, 'a>, execution: &Memory) -> Result<Self>
Retain the first qualified source; capacity remains charged until drop.
Sourcepub fn sources(&self) -> &[AbsenceEvidence<'r, 'a>]
pub fn sources(&self) -> &[AbsenceEvidence<'r, 'a>]
Original evidence behind every contributing reason union.
Sourcepub fn add(
&mut self,
evidence: AbsenceEvidence<'r, 'a>,
execution: &Memory,
) -> Result<CoverageAdmission>
pub fn add( &mut self, evidence: AbsenceEvidence<'r, 'a>, execution: &Memory, ) -> Result<CoverageAdmission>
Add compatible qualified coverage under the current operation account.
Growing coverage is request-scoped: execution must share its original
account. Later requests may inspect retained facts, but cannot grow this
collection using a different work domain. No old-account fallback.
Trait Implementations§
Auto Trait Implementations§
impl<'r, 'a> !Freeze for Coverage<'r, 'a>
impl<'r, 'a> !RefUnwindSafe for Coverage<'r, 'a>
impl<'r, 'a> !Send for Coverage<'r, 'a>
impl<'r, 'a> !Sync for Coverage<'r, 'a>
impl<'r, 'a> !UnwindSafe for Coverage<'r, 'a>
impl<'r, 'a> Unpin for Coverage<'r, 'a>
impl<'r, 'a> UnsafeUnpin for Coverage<'r, '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