pub struct BoundArtifact<'a> { /* private fields */ }Implementations§
Source§impl<'a> BoundArtifact<'a>
impl<'a> BoundArtifact<'a>
pub fn bind( proposal: Proposal<'a>, mode: ExecutionMode, parent: Option<ParentEventBinding>, byte_budget: u64, ) -> Result<Self, PolicyError>
Sourcepub fn output(&self) -> ArtifactOutput
pub fn output(&self) -> ArtifactOutput
Prepared output for the real artifact session. This owns no counter.
pub fn bytes(&self) -> &'a [u8] ⓘ
Sourcepub fn media(&self) -> ArtifactMedia
pub fn media(&self) -> ArtifactMedia
Retain CanonicalQuins even though the generic metadata media is Binary.
Sourcepub fn match_session_key(&self, key: &ArtifactKey) -> Result<(), PolicyError>
pub fn match_session_key(&self, key: &ArtifactKey) -> Result<(), PolicyError>
Require the real session-returned key; no second event sequence is created. Matching metadata is not proof of admission or a prior parent acceptance. A live caller must terminally discard a pending session on mismatch; this pure comparison does not silently cancel or authorize another decision.
Sourcepub fn evaluate(
&self,
policy: &VerifiedEvidencePolicy<'_>,
actor: ActorPolicyScope,
now: u64,
) -> Result<Decision, PolicyError>
pub fn evaluate( &self, policy: &VerifiedEvidencePolicy<'_>, actor: ActorPolicyScope, now: u64, ) -> Result<Decision, PolicyError>
Actual signed-origin V3 VM/graph evaluation only. Current authority, accepted queue admission and backing validation still belong to the live host boundary.
Auto Trait Implementations§
impl<'a> Freeze for BoundArtifact<'a>
impl<'a> RefUnwindSafe for BoundArtifact<'a>
impl<'a> Send for BoundArtifact<'a>
impl<'a> Sync for BoundArtifact<'a>
impl<'a> Unpin for BoundArtifact<'a>
impl<'a> UnsafeUnpin for BoundArtifact<'a>
impl<'a> UnwindSafe for BoundArtifact<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more