pub struct HoverTool { /* private fields */ }Expand description
Tool for getting hover information from LSP servers
Implementations§
Source§impl HoverTool
impl HoverTool
Sourcepub fn set_lsp_service(&mut self, lsp_service: Arc<dyn LspService>)
pub fn set_lsp_service(&mut self, lsp_service: Arc<dyn LspService>)
Set the LSP service for this tool
Trait Implementations§
Source§impl Tool for HoverTool
impl Tool for HoverTool
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
parameters: Value,
_host: &'life1 dyn HostIntegration,
) -> Pin<Box<dyn Future<Output = Result<ToolResponse, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
parameters: Value,
_host: &'life1 dyn HostIntegration,
) -> Pin<Box<dyn Future<Output = Result<ToolResponse, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the tool with the given parameters
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get a description of what this tool does
Source§fn requires_permission(&self) -> Permission
fn requires_permission(&self) -> Permission
Get the permission required to execute this tool
Source§fn parameter_schema(&self) -> Value
fn parameter_schema(&self) -> Value
Get the JSON schema for the tool’s parameters
Auto Trait Implementations§
impl Freeze for HoverTool
impl !RefUnwindSafe for HoverTool
impl Send for HoverTool
impl Sync for HoverTool
impl Unpin for HoverTool
impl UnsafeUnpin for HoverTool
impl !UnwindSafe for HoverTool
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more