Skip to main content

CapabilityName

Enum CapabilityName 

Source
#[non_exhaustive]
pub enum CapabilityName { UserShell, SessionMcp, SessionListStream, Feedback, ComputerUseSetup, ComputerUseHostSetup, SessionRename, PeerMessaging, RawLog, Unknown(String), }
Expand description

A grantable capability name. Open: the reserved rawLog entry joins this domain as an additive open-enum extension when the protocol spec un-defers — closed would make that a retype.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UserShell

session/userShell.

§

SessionMcp

Native MCP definitions supplied at session construction.

§

SessionListStream

The opt-in session/listChanged row change stream: granted-by-default delivery preference — the stream is emitted only on connections holding this grant.

§

Feedback

First-party feedback submission through the host: the host-policy gate for feedback/submit — granted at initialize only when feedback is allowed on the install, never by client identity.

§

ComputerUseSetup

Settings-driven computer-use setup: the gate for computerUseSetup/* — granted at initialize only when computer use is offered on this host.

§

ComputerUseHostSetup

Computer-use setup with no chat: computerUseSetup/read and /start without sessionId, computerUseSetup/check, and the host’s computerUseSetup/changed — granted at initialize only when computer use is offered and the host composes host setup.

§

SessionRename

Whether this host can rename sessions: granted on request where the session-name store exists (macOS, Linux; not the ephemeral profile), never on Windows. Advisory: session/rename is not gated by it.

§

PeerMessaging

Cross-session peer messaging and admission: the one gate for peer/* and admission/* — granted at initialize iff the host serves the plane (unix platform with registry access over a spawner-is-client or same-user transport), refused on beyond-same-user transports. Experimental-tier only: the per-variant stability strips it from the stable render, like rawLog below.

§

RawLog

The raw-log altitude: all log/* and projection/* methods. Experimental-tier only: granted solely on connections that opted into experimentalApi; a v1 host never grants it as a stable surface. The per-variant stability strips it from the stable render, keeping the governing rules “nowhere outside reserved tables” pin green.

§

Unknown(String)

A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.

Implementations§

Source§

impl CapabilityName

Source

pub fn as_str(&self) -> &str

The exact wire spelling, including an unknown word kept verbatim.

Trait Implementations§

Source§

impl Clone for CapabilityName

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 Debug for CapabilityName

Source§

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

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

impl<'de> Deserialize<'de> for CapabilityName

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

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

impl Eq for CapabilityName

Source§

impl PartialEq for CapabilityName

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 CapabilityName

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

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

impl StructuralPartialEq for CapabilityName

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.