pub trait LspProgressCallback: Send + Sync {
// Required methods
fn on_progress(&self, progress: f32, message: &str);
fn on_complete(&self);
fn on_error(&self, error: &str);
}Expand description
Progress callback trait for UI updates
Implement this trait to receive progress updates during LSP initialization.
The callback is called from async context, so implementations must be Send + Sync.
Required Methods§
Sourcefn on_progress(&self, progress: f32, message: &str)
fn on_progress(&self, progress: f32, message: &str)
Called when progress updates
progress: Percentage (0.0 - 1.0)message: Human-readable status message
Sourcefn on_complete(&self)
fn on_complete(&self)
Called when initialization completes successfully
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".