pub struct Path<'a> { /* private fields */ }Expand description
One certification path: the certificates from the target up, the anchor they lead to, and what the authorities along it agreed the target was issued under.
Implementations§
Source§impl<'a> Path<'a>
impl<'a> Path<'a>
Sourcepub fn certificates(&self) -> &[&'a Certificate<'a>]
pub fn certificates(&self) -> &[&'a Certificate<'a>]
The certificates, the target first and the one the anchor issued last. The anchor’s own certificate is not among them.
Sourcepub fn policies(&self) -> &[Oid<'a>]
pub fn policies(&self) -> &[Oid<'a>]
The policies every authority along the path agreed the target was issued under, narrowed to the ones the caller asked about.
Empty says the path names no policy the caller asked about, which is a path only because nobody along it demanded that it name one.
A set rather than a list, and returned in one order whatever order the certificates wrote it in, so that two paths naming one set are told apart by walking them once.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Path<'a>
impl<'a> !RefUnwindSafe for Path<'a>
impl<'a> !Send for Path<'a>
impl<'a> !Sync for Path<'a>
impl<'a> !UnwindSafe for Path<'a>
impl<'a> Unpin for Path<'a>
impl<'a> UnsafeUnpin for Path<'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