pub struct CommandCapabilities(/* private fields */);Expand description
Exact host capabilities exposed to one contextual command handler.
The set lives in the external contract crate so command registrations can
declare least authority without naming the TUI host. The dispatcher uses
the declaration to populate only those slots in CommandContexts.
Implementations§
Source§impl CommandCapabilities
impl CommandCapabilities
pub const NONE: Self
pub const SESSION: Self
pub const MODEL: Self
pub const COST: Self
pub const MODE_POLICY: Self
pub const SYSTEM_PROMPT: Self
pub const SKILLS: Self
pub const WORKSPACE: Self
pub const PRESENTATION: Self
pub const MEDIA: Self
Sourcepub const SKILL_GROUP: Self
pub const SKILL_GROUP: Self
Skills-group host data (FEAT-022 D1).
Sourcepub const PLUGIN: Self
pub const PLUGIN: Self
Plugin-group host data (FEAT-020 D1), appended after current main capabilities.
Sourcepub const SESSION_LIFECYCLE: Self
pub const SESSION_LIFECYCLE: Self
Session-lifecycle host data (FEAT-023 D3), the next non-conflicting bit
after PLUGIN. Required only by the seven host-dependent lifecycle
commands; /compact and /purge remain pure. Never widened by the
basic session capability.
Sourcepub const SESSION_CONTROL: Self
pub const SESSION_CONTROL: Self
Session-control host data (FEAT-024 D3), the next non-conflicting bit
after SESSION_LIFECYCLE. Required only by the six host-dependent
control commands (/relay, /rename, /resume, /rc, /remote-env,
/title); /remote-env also declares PRESENTATION. The backing
storage remains u16 per the resolved maintainer review on FEAT-023 PR
#5902 — bit 14 is available, so no speculative widening is performed.
pub const fn union(self, other: Self) -> Self
pub const fn contains(self, capability: Self) -> bool
pub const fn is_empty(self) -> bool
Trait Implementations§
Source§impl BitOr for CommandCapabilities
impl BitOr for CommandCapabilities
Source§impl Clone for CommandCapabilities
impl Clone for CommandCapabilities
Source§fn clone(&self) -> CommandCapabilities
fn clone(&self) -> CommandCapabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CommandCapabilities
Source§impl Debug for CommandCapabilities
impl Debug for CommandCapabilities
Source§impl Default for CommandCapabilities
impl Default for CommandCapabilities
Source§fn default() -> CommandCapabilities
fn default() -> CommandCapabilities
impl Eq for CommandCapabilities
Source§impl PartialEq for CommandCapabilities
impl PartialEq for CommandCapabilities
impl StructuralPartialEq for CommandCapabilities
Auto Trait Implementations§
impl Freeze for CommandCapabilities
impl RefUnwindSafe for CommandCapabilities
impl Send for CommandCapabilities
impl Sync for CommandCapabilities
impl Unpin for CommandCapabilities
impl UnsafeUnpin for CommandCapabilities
impl UnwindSafe for CommandCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.