pub struct ActivationCapability { /* private fields */ }Expand description
Capability context for the discovery/activation builtins. Constructed by the host per round from the round’s catalog snapshot, the retained session-set handle, and host confirmation policy.
Implementations§
Source§impl ActivationCapability
impl ActivationCapability
pub fn new( catalog: ToolCatalog, session_set: SharedSessionToolSet, authority: ActivationAuthority, ) -> Self
pub fn catalog(&self) -> &ToolCatalog
pub fn session_set(&self) -> &SharedSessionToolSet
Sourcepub fn revoke_exact_mcp_grant(
&self,
session: &SessionId,
server: &str,
server_tool_name: &str,
) -> bool
pub fn revoke_exact_mcp_grant( &self, session: &SessionId, server: &str, server_tool_name: &str, ) -> bool
Narrow MCP grant invalidation (Task 19): revoke EXACTLY one MCP
ToolId from the RETAINED session set, and only when the caller’s
session identity matches the retained set’s session. Core tools and
sibling activations are untouched; the catalog is never mutated.
Returns true iff an activation was actually removed.
Sourcepub fn revoke_exact_extension_grant(
&self,
session: &SessionId,
plugin_id: &str,
tool_name: &str,
) -> bool
pub fn revoke_exact_extension_grant( &self, session: &SessionId, plugin_id: &str, tool_name: &str, ) -> bool
Narrow extension grant invalidation (Task 20): revoke EXACTLY one
extension ToolId from the RETAINED session set, and only when the
caller’s session identity matches the retained set’s session. Core
tools and sibling activations are untouched; the catalog is never
mutated. Returns true iff an activation was actually removed.
Trait Implementations§
Source§impl Clone for ActivationCapability
impl Clone for ActivationCapability
Source§fn clone(&self) -> ActivationCapability
fn clone(&self) -> ActivationCapability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ActivationCapability
impl !UnwindSafe for ActivationCapability
impl Freeze for ActivationCapability
impl Send for ActivationCapability
impl Sync for ActivationCapability
impl Unpin for ActivationCapability
impl UnsafeUnpin for ActivationCapability
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.