Skip to main content

Source

Struct Source 

Source
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>

Source

pub fn kind(&self) -> Kind

Actual material schema, not a conclusion about its validity or use.

Source

pub fn location(&self) -> Location<N, D, G>

Original XML enclosure; inner offsets are in this distinct decoded source.

Source

pub fn bytes(&self) -> &[u8] ⓘ

Original decoded window, without another copy or exposing mutable storage.

Source

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§

Source§

impl<N: Debug, D: Debug, G: Debug> Debug for Source<N, D, G>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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>
where Located<OwnedDecoded, N, D, G>: Send,

§

impl<N, D, G> Unpin for Source<N, D, G>
where Located<OwnedDecoded, N, D, G>: Unpin,

§

impl<N, D, G> UnsafeUnpin for Source<N, D, G>
where Located<OwnedDecoded, N, D, G>: UnsafeUnpin,

§

impl<N, D, G> UnwindSafe for Source<N, D, G>
where Located<OwnedDecoded, N, D, G>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.