Skip to main content

ValidationContext

Struct ValidationContext 

Source
pub struct ValidationContext<'a, 'p, V: Verify, W: Watch, R: Recognizer> {
    pub execution: &'p Memory,
    pub interval: Interval,
    pub policy: Policy<'a>,
    pub bounds: ValidationBounds,
    pub verifier: &'p V,
    pub watch: &'p W,
    pub recognizer: &'p R,
}
Expand description

Explicit execution inputs for static checking of a borrowed supplied path. Callers supply trusted anchors, cryptographic capability and application policy separately; no clock, network or trust discovery is performed here.

Fields§

§execution: &'p Memory

The current operation’s shared work and storage account.

§interval: Interval

The interval every certificate must cover.

§policy: Policy<'a>

Certificate-policy processing inputs.

§bounds: ValidationBounds

Local bounds that only tighten the shared execution budget.

§verifier: &'p V

Injected signature verifier; it accounts its own internal work/storage.

§watch: &'p W

Caller-provided deadline check; () means no clock, with work still bounded.

§recognizer: &'p R

Injected recognition of scheme-specific critical extensions/names.

Auto Trait Implementations§

§

impl<'a, 'p, V, W, R> Freeze for ValidationContext<'a, 'p, V, W, R>

§

impl<'a, 'p, V, W, R> RefUnwindSafe for ValidationContext<'a, 'p, V, W, R>

§

impl<'a, 'p, V, W, R> Send for ValidationContext<'a, 'p, V, W, R>

§

impl<'a, 'p, V, W, R> Sync for ValidationContext<'a, 'p, V, W, R>

§

impl<'a, 'p, V, W, R> Unpin for ValidationContext<'a, 'p, V, W, R>

§

impl<'a, 'p, V, W, R> UnsafeUnpin for ValidationContext<'a, 'p, V, W, R>

§

impl<'a, 'p, V, W, R> UnwindSafe for ValidationContext<'a, 'p, V, W, R>

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.