pub struct ToolRegistration { /* private fields */ }Expand description
工具注册信息(包含安全分级 + 执行函数)。
Implementations§
Source§impl ToolRegistration
impl ToolRegistration
pub fn safe<F, Fut>(f: F) -> Self
pub fn category_exclusive<F, Fut>(category: ToolCategory, f: F) -> Self
pub fn exclusive<F, Fut>(f: F) -> Self
Auto Trait Implementations§
impl Freeze for ToolRegistration
impl !RefUnwindSafe for ToolRegistration
impl Send for ToolRegistration
impl Sync for ToolRegistration
impl Unpin for ToolRegistration
impl UnsafeUnpin for ToolRegistration
impl !UnwindSafe for ToolRegistration
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