pub struct RevocationIndex { /* private fields */ }Expand description
The propagation and query index: artifacts ↔ authority states.
Implementations§
Source§impl RevocationIndex
impl RevocationIndex
Sourcepub fn bind(&mut self, binding: AuthorityStateBinding)
pub fn bind(&mut self, binding: AuthorityStateBinding)
Record an artifact’s binding to authority states.
Sourcepub fn revoke_state(&mut self, fingerprint: &str)
pub fn revoke_state(&mut self, fingerprint: &str)
Revoke an authority state (by fingerprint) and propagate: every artifact transitively bound to that state is marked, not deleted; the marking is queryable and reversible.
Sourcepub fn correct_state(&mut self, fingerprint: &str)
pub fn correct_state(&mut self, fingerprint: &str)
Correct a revocation: un-mark artifacts bound to the state.
Sourcepub fn artifact_status(
&self,
artifact_hash: &str,
) -> (Vec<String>, Option<ArtifactMark>)
pub fn artifact_status( &self, artifact_hash: &str, ) -> (Vec<String>, Option<ArtifactMark>)
Forward query: the states an artifact is bound to and its current marking.
Sourcepub fn artifacts_for_state(&self, fingerprint: &str) -> Vec<String>
pub fn artifacts_for_state(&self, fingerprint: &str) -> Vec<String>
Reverse query: artifacts bound to a given state.
Trait Implementations§
Source§impl Clone for RevocationIndex
impl Clone for RevocationIndex
Source§fn clone(&self) -> RevocationIndex
fn clone(&self) -> RevocationIndex
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 RevocationIndex
impl Debug for RevocationIndex
Source§impl Default for RevocationIndex
impl Default for RevocationIndex
Source§fn default() -> RevocationIndex
fn default() -> RevocationIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RevocationIndex
impl RefUnwindSafe for RevocationIndex
impl Send for RevocationIndex
impl Sync for RevocationIndex
impl Unpin for RevocationIndex
impl UnsafeUnpin for RevocationIndex
impl UnwindSafe for RevocationIndex
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