Skip to main content

ExternalResourcePlan

Struct ExternalResourcePlan 

Source
pub struct ExternalResourcePlan<A: AsRef<[u8]>> {
    pub manifest_store_present: bool,
    pub resources: Vec<ExternalResourceRequest>,
    pub truncated: bool,
    pub stop_reason: Option<ExternalResourceStopReason>,
    /* private fields */
}
Expand description

A parse-only, bounded external-resource discovery session.

resources is the current ordered frontier. The caller resolves that frontier into an ExternalResources provider, then calls ExternalResourcePlan::continue_with. The method replaces it with the next frontier. The plan owns asset, so native bindings can retain their own zero-copy byte container without self-referential borrows.

Fields§

§manifest_store_present: bool

True once an embedded, supplied, or retrieved initial store was located, before parsing it. A malformed embedded store therefore cannot trigger a remote-manifest fallback. false authorizes a different root fallback only when Self::stop_reason is None and Self::resources is empty.

§resources: Vec<ExternalResourceRequest>

Current first-seen resource frontier.

§truncated: bool

True when discovery terminated before proving the frontier complete.

§stop_reason: Option<ExternalResourceStopReason>

Typed terminal reason when truncated is true.

Implementations§

Source§

impl<A: AsRef<[u8]>> ExternalResourcePlan<A>

Source

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

Borrow the original asset for the one final verification pass.

Source

pub fn did_documents(&self) -> &[ExternalDidDocumentRequest]

DID documents found by parse-only inspection of active ICA identities.

The list accumulates as retrieved initial stores are parsed. Callers must prefer a document already pinned in VerifyOptions and fetch only entries that remain unresolved.

Source

pub fn continue_with( &mut self, resources: &dyn ExternalResources, ) -> Result<(), Error>

Consume the current frontier from caller-held outcomes and discover the next manifest-store or append-history frontier. No network I/O or verification occurs.

Auto Trait Implementations§

§

impl<A> Freeze for ExternalResourcePlan<A>
where A: Freeze,

§

impl<A> RefUnwindSafe for ExternalResourcePlan<A>
where A: RefUnwindSafe,

§

impl<A> Send for ExternalResourcePlan<A>
where A: Send,

§

impl<A> Sync for ExternalResourcePlan<A>
where A: Sync,

§

impl<A> Unpin for ExternalResourcePlan<A>
where A: Unpin,

§

impl<A> UnsafeUnpin for ExternalResourcePlan<A>
where A: UnsafeUnpin,

§

impl<A> UnwindSafe for ExternalResourcePlan<A>
where A: 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V