pub struct Occurrence<N, D, G, P> { /* private fields */ }Expand description
One original occurrence, with an explicit source-pool discriminator and the format’s own placement of the value.
Implementations§
Source§impl<N: Copy, D: Copy, G: Copy, P: Copy> Occurrence<N, D, G, P>
impl<N: Copy, D: Copy, G: Copy, P: Copy> Occurrence<N, D, G, P>
Sourcepub fn new(
source: ArtifactSource,
location: Location<N, D, G>,
placement: P,
) -> Self
pub fn new( source: ArtifactSource, location: Location<N, D, G>, placement: P, ) -> Self
A direct occurrence of a certificate, CRL or whole OCSP value.
Sourcepub fn source(&self) -> ArtifactSource
pub fn source(&self) -> ArtifactSource
Actual original source pool and its ordinal, never a shared ambiguous integer for format material and timestamp token sources.
Sourcepub fn placement(&self) -> P
pub fn placement(&self) -> P
Actual container role, not a permission to use it for every actor.
Sourcepub fn embedded_certificate(&self) -> Option<usize>
pub fn embedded_certificate(&self) -> Option<usize>
Certificate ordinal inside an OCSP basic response, if the artifact is embedded there. None means a direct certificate/status value.
Trait Implementations§
impl<N: Copy, D: Copy, G: Copy, P: Copy> Copy for Occurrence<N, D, G, P>
Auto Trait Implementations§
impl<N, D, G, P> Freeze for Occurrence<N, D, G, P>
impl<N, D, G, P> RefUnwindSafe for Occurrence<N, D, G, P>
impl<N, D, G, P> Send for Occurrence<N, D, G, P>
impl<N, D, G, P> Sync for Occurrence<N, D, G, P>
impl<N, D, G, P> Unpin for Occurrence<N, D, G, P>
impl<N, D, G, P> UnsafeUnpin for Occurrence<N, D, G, P>
impl<N, D, G, P> UnwindSafe for Occurrence<N, D, G, P>
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