pub trait NavigationProvider: Send + Sync {
// Required methods
fn version(&self) -> ProviderVersion;
fn navigate(
&self,
request: &SemanticRequest,
cancellation: &NavigationCancellation,
) -> Result<SemanticReply, SemanticFailure>;
}Expand description
A provider revision must change whenever any semantic input changes, including build options and external dependencies. Providers must be bounded, cooperate with cancellation, and must not re-enter this engine while answering.
Required Methods§
fn version(&self) -> ProviderVersion
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".