Skip to main content

Request

Struct Request 

Source
pub struct Request<'a> { /* private fields */ }
Expand description

A request whose native signature and original attribute catalogue are readable. Alternative faults/absence remain in components, without erasing native facts.

Implementations§

Source§

impl<'a> Request<'a>

Source

pub fn read(parser: &'a Parser, bytes: &'a [u8], base: u64) -> Result<Self>

Read a complete original DER request under the supplied parser limits.

Source

pub fn read_element(parent: &Reader<'a>, element: &Element<'a>) -> Result<Self>

Read an embedded request, preserving its real source, depth and budget.

Source

pub fn span(&self) -> Span

Original whole request location.

Source

pub fn as_bytes(&self) -> &'a [u8] ⓘ

Original complete request DER.

Source

pub fn signed_bytes(&self) -> &'a [u8] ⓘ

Exact native proof input, including the alternative-value attribute.

Source

pub fn subject(&self) -> &Name<'a>

Original requested subject, without application identity policy.

Source

pub fn public_key(&self) -> PublicKeyInfo<'a>

Original native key used for the native proof of possession.

Source

pub fn attributes(&self) -> &[Attribute<'a>]

All original attributes, with no product-specific allowlist or normalization. This raw catalogue borrow performs no traversal; callers fund their scans.

Source

pub fn components(&self) -> &Components<'a>

Independent alternative components, including located faults and absence.

Source

pub fn prepare<W: Work>(&self, work: &W) -> Result<Prepared<'a>>

Strict preparation: all three single-valued attributes must be readable.

Source

pub fn check<W: Work, N: Verify<W>, A: AlternativeVerifier<W>>( &self, native: &N, verifier: &A, work: &W, ) -> Result<Signatures, CheckError<N::Error, A::Error>>

Evaluate both proofs independently; a two-key enrollment caller requires Both.

Trait Implementations§

Source§

impl<'a> Debug for Request<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> !Freeze for Request<'a>

§

impl<'a> !RefUnwindSafe for Request<'a>

§

impl<'a> !Send for Request<'a>

§

impl<'a> !Sync for Request<'a>

§

impl<'a> !UnwindSafe for Request<'a>

§

impl<'a> Unpin for Request<'a>

§

impl<'a> UnsafeUnpin for Request<'a>

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.