pub struct LspProgressTracker { /* private fields */ }Expand description
LSP progress tracker
Tracks the initialization progress of a single LSP server.
Implementations§
Source§impl LspProgressTracker
impl LspProgressTracker
Sourcepub fn new(language: impl Into<String>, server_name: impl Into<String>) -> Self
pub fn new(language: impl Into<String>, server_name: impl Into<String>) -> Self
Create a new progress tracker
Sourcepub fn server_name(&self) -> &str
pub fn server_name(&self) -> &str
Get server name
Sourcepub fn status(&self) -> LspInitStatus
pub fn status(&self) -> LspInitStatus
Get current status
Sourcepub fn elapsed_secs(&self) -> Option<f64>
pub fn elapsed_secs(&self) -> Option<f64>
Get elapsed time since initialization started
Auto Trait Implementations§
impl Freeze for LspProgressTracker
impl RefUnwindSafe for LspProgressTracker
impl Send for LspProgressTracker
impl Sync for LspProgressTracker
impl Unpin for LspProgressTracker
impl UnsafeUnpin for LspProgressTracker
impl UnwindSafe for LspProgressTracker
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