Skip to main content

View

Struct View 

Source
pub struct View<'source, N, D, G> { /* private fields */ }
Expand description

Callback-local parsed set. All known values have been decoded and parsed before the visitor runs; source and parsed arrays have identical index order. Open formats are not silently counted as usable X.509/status material.

Implementations§

Source§

impl<'source, N, D, G> View<'source, N, D, G>

Source

pub fn sources(&self) -> &'source [Retained<N, D, G>]

Frozen original sources backing every parsed value.

Source

pub fn values(&self) -> &'source [Located<Value<'source>, N, D, G>]

Parsed known values, without authentication or status promotion.

Source

pub fn opaque(&self) -> &'source [Opaque<N, D, G>]

Original schema-open formats requiring explicit recognition if needed.

Source

pub fn basic_responses(&self) -> &'source [Basic<'source, N, D, G>]

Every known basic-response payload, decoded once under the same current operation. Unknown types and protocol failures remain in values(); they are never silently promoted to signed basic responses.

Source§

impl<N: Copy, D: Copy, G: Copy> View<'_, N, D, G>

Source

pub fn snapshot(&self) -> Snapshot<D, G>

Original immutable source generation of this complete parsed catalogue.

Source

pub fn signature(&self) -> N

Exact selected root whose original material was collected.

Auto Trait Implementations§

§

impl<'source, N, D, G> !RefUnwindSafe for View<'source, N, D, G>

§

impl<'source, N, D, G> !Send for View<'source, N, D, G>

§

impl<'source, N, D, G> !Sync for View<'source, N, D, G>

§

impl<'source, N, D, G> !UnwindSafe for View<'source, N, D, G>

§

impl<'source, N, D, G> Forget for View<'source, N, D, G>

§

impl<'source, N, D, G> Freeze for View<'source, N, D, G>
where Snapshot<D, G>: Freeze, N: Freeze, &'source [Retained<N, D, G>]: Freeze, &'source [Located<Value<'source>, N, D, G>]: Freeze, &'source [Opaque<N, D, G>]: Freeze, &'source [Basic<'source, N, D, G>]: Freeze,

§

impl<'source, N, D, G> Unpin for View<'source, N, D, G>
where Snapshot<D, G>: Unpin, N: Unpin, &'source [Retained<N, D, G>]: Unpin, &'source [Located<Value<'source>, N, D, G>]: Unpin, &'source [Opaque<N, D, G>]: Unpin, &'source [Basic<'source, N, D, G>]: Unpin,

§

impl<'source, N, D, G> UnsafeUnpin for View<'source, N, D, G>
where Snapshot<D, G>: UnsafeUnpin, N: UnsafeUnpin, &'source [Retained<N, D, G>]: UnsafeUnpin, &'source [Located<Value<'source>, N, D, G>]: UnsafeUnpin, &'source [Opaque<N, D, G>]: UnsafeUnpin, &'source [Basic<'source, N, D, G>]: UnsafeUnpin,

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.