Skip to main content

Inspection

Struct Inspection 

Source
pub struct Inspection<'a, 'parameters> { /* private fields */ }
Expand description

A scoped recognized scheme and its readable parameter-profile diagnostics.

This is not a validated super::Algorithm or permission to call a provider. Fixed-scheme recognition survives unwanted parameters; their original bytes remain available through Self::identifier. No parameter is rewritten.

Implementations§

Source§

impl<'a> Inspection<'a, '_>

Source

pub const fn identifier(&self) -> AlgorithmIdentifier<'a>

Original identifier, including its source, encoding and parameter bytes.

Source

pub const fn scheme(&self) -> Option<Scheme>

Recognized OID identity; unknown OIDs are not inferred from parameters.

Source

pub const fn parameters(&self) -> Option<&Parameters<'a>>

Actual readable PSS parameters, absent for fixed schemes or missing PSS. Missing mandatory signature parameters have a separate located fault.

Source

pub const fn faults(&self) -> &[Error]

Located profile faults, independent of provider support and mathematics. Empty for unknown algorithms, whose conformance is not assessed here.

Trait Implementations§

Source§

impl<'a, 'parameters> Debug for Inspection<'a, 'parameters>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, 'parameters> !RefUnwindSafe for Inspection<'a, 'parameters>

§

impl<'a, 'parameters> !Send for Inspection<'a, 'parameters>

§

impl<'a, 'parameters> !Sync for Inspection<'a, 'parameters>

§

impl<'a, 'parameters> !UnwindSafe for Inspection<'a, 'parameters>

§

impl<'a, 'parameters> Freeze for Inspection<'a, 'parameters>

§

impl<'a, 'parameters> Unpin for Inspection<'a, 'parameters>

§

impl<'a, 'parameters> UnsafeUnpin for Inspection<'a, 'parameters>

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.