pub struct Tool { /* private fields */ }Expand description
A type-erased typed tool plus its stable protocol descriptor.
Constructed through Definition::tool in normal use. The public
accessors exist so capability packages can test and document their
exported schema, and so hosts can execute calls via Tool::invoke.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Tool
impl !UnwindSafe for Tool
impl Freeze for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
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