Skip to main content

BlockAuthorityV1

Enum BlockAuthorityV1 

Source
pub enum BlockAuthorityV1 {
    HostGate,
    HostPolicy,
    HostDeadline,
    Operator,
    ProviderClassifier,
    ProviderPermissionRule,
    ProviderSandbox,
    ProviderRefusal,
    UserRejected,
    ProviderQuota,
    Unknown,
}
Expand description

WHO or WHAT blocked an action – see AgentStreamChunkKindV1::Blocked.

The host side of the wire (HostGate, HostPolicy, HostDeadline, Operator) names the four deciders of a host request the node relays to an ACP session; the provider side (ProviderClassifier … ProviderQuota) names refusals the provider reported through a typed field. Unknown means no typed field named the blocker – text may still have filled reason/help, but never this field: authority is never guessed from text.

Variants§

§

HostGate

A dangerous-command gate forced the outcome ahead of the host’s policy.

§

HostPolicy

The host’s policy decided the request the instant it arrived.

§

HostDeadline

A deferred request the host’s policy decided after no operator answered in time.

§

Operator

An operator explicitly declined.

§

ProviderClassifier

The provider’s own auto-mode classifier refused the call.

§

ProviderPermissionRule

A provider-side permission rule (an allow/deny list entry) refused the call.

§

ProviderSandbox

The provider’s sandbox refused the call.

§

ProviderRefusal

The provider declined with a stopReason: "refusal" or equivalent.

§

UserRejected

A human declined inside the provider’s OWN UI/CLI.

§

ProviderQuota

The provider’s own account/plan quota, rate limit, or usage cap was exhausted. reason_kind carries the provider’s own vendor code.

§

Unknown

No typed field named who blocked it.

Trait Implementations§

Source§

impl Clone for BlockAuthorityV1

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for BlockAuthorityV1

Source§

impl Debug for BlockAuthorityV1

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for BlockAuthorityV1

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for BlockAuthorityV1

Source§

impl PartialEq for BlockAuthorityV1

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for BlockAuthorityV1

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for BlockAuthorityV1

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.