pub enum BindOutcome {
Bound {
receipt: BindReceipt,
},
Unbound {
agent: String,
reason: String,
},
}Expand description
One provider outcome for a single BindRequest.
A provider reports exactly one outcome per requested agent. Bound
carries an (untrusted) BindReceipt Core still validates; Unbound
records that the execution environment currently offers no capability for
the request (e.g. the role has not joined, or the manifest declares no
matching launch variant). Whether an Unbound outcome fails the launch
or is merely observed is decided by
CompilerStrategy::strict_binding — not by the provider.
Variants§
Bound
The provider resolved a receipt for the agent. Still untrusted until
Core validates it against the originating BindRequest.
Fields
receipt: BindReceiptProvider-reported binding, validated by Core before acceptance.
Unbound
The provider offers no capability for the request right now. The
reason is human-facing diagnostic text only; it never enters the
BoundAgent snapshot or its digest lineage.
Trait Implementations§
Source§impl Clone for BindOutcome
impl Clone for BindOutcome
Source§fn clone(&self) -> BindOutcome
fn clone(&self) -> BindOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BindOutcome
impl Debug for BindOutcome
Source§impl<'de> Deserialize<'de> for BindOutcome
impl<'de> Deserialize<'de> for BindOutcome
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BindOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BindOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for BindOutcome
Source§impl JsonSchema for BindOutcome
impl JsonSchema for BindOutcome
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for BindOutcome
impl PartialEq for BindOutcome
Source§impl Serialize for BindOutcome
impl Serialize for BindOutcome
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for BindOutcome
Auto Trait Implementations§
impl Freeze for BindOutcome
impl RefUnwindSafe for BindOutcome
impl Send for BindOutcome
impl Sync for BindOutcome
impl Unpin for BindOutcome
impl UnsafeUnpin for BindOutcome
impl UnwindSafe for BindOutcome
Blanket Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
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>
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