pub struct Verifier {
voa_location: VoaLocation,
canonicalized: PathBuf,
}
Expand description
A Verifier
points to a signature verifier in the file system.
It consists of the VoaLocation
via which the verifier was obtained, and a canonicalized
path to the actual verifier file.
Depending on the verifier Technology
, a Verifier
instance may represent, e.g.:
- an individual, standalone signature verifier,
- an individual verifier that acts as a trust anchor,
- a certificate complete with its trust chain,
- a set of individual verifiers in one shared data structure.
Fields§
§voa_location: VoaLocation
The logical VOA location via which the verifier was found
canonicalized: PathBuf
Canonicalized path of the verifier file
Implementations§
Source§impl Verifier
impl Verifier
Sourcepub(crate) fn new(voa_location: VoaLocation, canonicalized: PathBuf) -> Self
pub(crate) fn new(voa_location: VoaLocation, canonicalized: PathBuf) -> Self
Sourcepub fn voa_location(&self) -> &VoaLocation
pub fn voa_location(&self) -> &VoaLocation
The VoaLocation
that this verifier file was found through
Sourcepub fn canonicalized(&self) -> &Path
pub fn canonicalized(&self) -> &Path
Returns a reference to the canonicalized path for the file that this Verifier
represents.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Verifier
impl RefUnwindSafe for Verifier
impl Send for Verifier
impl Sync for Verifier
impl Unpin for Verifier
impl UnwindSafe for Verifier
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