pub struct PolicyArtifactVerifier<V> { /* private fields */ }Expand description
Composes deployment allowlists with a cryptographic verifier.
Implementations§
Source§impl<V> PolicyArtifactVerifier<V>
impl<V> PolicyArtifactVerifier<V>
Sourcepub fn new(policy: ArtifactTrustPolicy, verifier: V) -> Self
pub fn new(policy: ArtifactTrustPolicy, verifier: V) -> Self
Creates a verifier that enforces policy before authenticity.
Trait Implementations§
Source§impl<V> ArtifactAuthenticityVerifier for PolicyArtifactVerifier<V>where
V: ArtifactAuthenticityVerifier,
impl<V> ArtifactAuthenticityVerifier for PolicyArtifactVerifier<V>where
V: ArtifactAuthenticityVerifier,
Source§fn verify(&self, artifact: &ArtifactDescriptor) -> UpdateResult<()>
fn verify(&self, artifact: &ArtifactDescriptor) -> UpdateResult<()>
Verifies the descriptor signature and configured trust policy.
Source§impl<V: Clone> Clone for PolicyArtifactVerifier<V>
impl<V: Clone> Clone for PolicyArtifactVerifier<V>
Source§fn clone(&self) -> PolicyArtifactVerifier<V>
fn clone(&self) -> PolicyArtifactVerifier<V>
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 moreAuto Trait Implementations§
impl<V> Freeze for PolicyArtifactVerifier<V>where
V: Freeze,
impl<V> RefUnwindSafe for PolicyArtifactVerifier<V>where
V: RefUnwindSafe,
impl<V> Send for PolicyArtifactVerifier<V>where
V: Send,
impl<V> Sync for PolicyArtifactVerifier<V>where
V: Sync,
impl<V> Unpin for PolicyArtifactVerifier<V>where
V: Unpin,
impl<V> UnsafeUnpin for PolicyArtifactVerifier<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for PolicyArtifactVerifier<V>where
V: UnwindSafe,
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