pub struct FnToolHandler<F>{ /* private fields */ }Available on crate feature
realtime only.Expand description
A simple function-based tool handler.
Implementations§
Source§impl<F> FnToolHandler<F>
impl<F> FnToolHandler<F>
Sourcepub fn new(handler: F) -> FnToolHandler<F>
pub fn new(handler: F) -> FnToolHandler<F>
Create a new function-based tool handler.
Trait Implementations§
Source§impl<F> ToolHandler for FnToolHandler<F>
impl<F> ToolHandler for FnToolHandler<F>
Auto Trait Implementations§
impl<F> Freeze for FnToolHandler<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnToolHandler<F>where
F: RefUnwindSafe,
impl<F> Send for FnToolHandler<F>
impl<F> Sync for FnToolHandler<F>
impl<F> Unpin for FnToolHandler<F>where
F: Unpin,
impl<F> UnsafeUnpin for FnToolHandler<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FnToolHandler<F>where
F: UnwindSafe,
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