pub struct Source<N, D, G> { /* private fields */ }Expand description
A retained original source before PKI parsing or any authentication decision.
Implementations§
Source§impl<N: Copy, D: Copy, G: Copy> Source<N, D, G>
impl<N: Copy, D: Copy, G: Copy> Source<N, D, G>
Sourcepub fn location(&self) -> Location<N, D, G>
pub fn location(&self) -> Location<N, D, G>
Original XML enclosure; inner offsets are in this distinct decoded source.
Sourcepub fn bytes(&self) -> &[u8] ⓘ
pub fn bytes(&self) -> &[u8] ⓘ
Original decoded window, without another copy or exposing mutable storage.
Sourcepub fn read_in<'source>(
&'source self,
operation: &Reader<'source>,
) -> ReadResult<'source, N, D, G>
pub fn read_in<'source>( &'source self, operation: &Reader<'source>, ) -> ReadResult<'source, N, D, G>
Parses exactly one value using the existing PKIX kernel and both budgets.
Multiple results can simultaneously borrow a finalized source catalogue.
EN319132-1 V1.3.1 §§5.4.2/5.4.3 fix DER for these binary values; in
particular an OCSP value is OCSPResponse, not bare BasicOCSPResponse.
https://www.etsi.org/deliver/etsi_en/319100_319199/31913201/01.03.01_60/en_31913201v010301p.pdf
Trait Implementations§
Auto Trait Implementations§
impl<N, D, G> !Freeze for Source<N, D, G>
impl<N, D, G> !RefUnwindSafe for Source<N, D, G>
impl<N, D, G> !Sync for Source<N, D, G>
impl<N, D, G> Forget for Source<N, D, G>
impl<N, D, G> Send for Source<N, D, G>
impl<N, D, G> Unpin for Source<N, D, G>
impl<N, D, G> UnsafeUnpin for Source<N, D, G>
impl<N, D, G> UnwindSafe for Source<N, D, G>
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