pub(crate) struct PartialPath<'a> {
end_entity: &'a EndEntityCert<'a>,
intermediates: [Option<Cert<'a>>; 6],
used: usize,
}
Expand description
A path for consideration in path building.
This represents a partial path because it does not yet contain the trust anchor. It stores the end-entity certificates, and an array of intermediate certificates.
Fields§
§end_entity: &'a EndEntityCert<'a>
§intermediates: [Option<Cert<'a>>; 6]
Intermediate certificates, in order from end-entity to trust anchor.
Invariant: all values below used
are Some
.
used: usize
The number of Some
values in intermediates
.
The next Cert
passed to push()
will be placed at intermediates[used]
.
If this value is 0, the path contains only the end-entity certificate.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PartialPath<'a>
impl<'a> RefUnwindSafe for PartialPath<'a>
impl<'a> Send for PartialPath<'a>
impl<'a> Sync for PartialPath<'a>
impl<'a> Unpin for PartialPath<'a>
impl<'a> UnwindSafe for PartialPath<'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