pub struct ToolAdmin { /* private fields */ }Implementations§
Source§impl ToolAdmin
impl ToolAdmin
pub async fn state(&self) -> Result<ToolState>
pub fn advanced(&self) -> AdvancedToolAdmin
Sourcepub async fn set_membership(
&self,
tool_id: impl Into<ToolId>,
present: bool,
) -> Result<u64>
pub async fn set_membership( &self, tool_id: impl Into<ToolId>, present: bool, ) -> Result<u64>
Toggle Tool Catalog membership for a tool. present adds it as a
member; !present removes it. Membership is the execution gate.
pub async fn set_membership_many( &self, updates: &[(ToolId, bool)], ) -> Result<u64>
pub async fn active_manifests(&self) -> Result<Vec<ToolManifest>>
pub async fn add_provider( &self, provider: Arc<dyn ToolProvider>, ) -> Result<ToolSourceHandle>
pub async fn remove_source(&self, handle: &ToolSourceHandle) -> Result<u64>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ToolAdmin
impl !UnwindSafe for ToolAdmin
impl Freeze for ToolAdmin
impl Send for ToolAdmin
impl Sync for ToolAdmin
impl Unpin for ToolAdmin
impl UnsafeUnpin for ToolAdmin
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
Mutably borrows from an owned value. Read more