pub struct LspProgressUpdate {
pub server_id: Arc<str>,
pub token: String,
pub kind: LspProgressKind,
pub title: Option<String>,
pub message: Option<String>,
pub percentage: Option<u32>,
pub cancellable: bool,
}Expand description
Fired when an attached server sends a $/progress
notification (LSP §3.16 work-done progress). The host
accumulates progress entries by (server_id, token) and
surfaces the most recent active one in the modeline.
kind carries the progress lifecycle phase:
LspProgressKind::Begin– new operation started.LspProgressKind::Report– ongoing update.LspProgressKind::End– operation finished; host removes the entry.
Fields§
§server_id: Arc<str>§token: String§kind: LspProgressKind§title: Option<String>§message: Option<String>§percentage: Option<u32>0..=100 if the server reports it; None for
indeterminate progress.
cancellable: boolTrait Implementations§
Source§impl Clone for LspProgressUpdate
impl Clone for LspProgressUpdate
Source§fn clone(&self) -> LspProgressUpdate
fn clone(&self) -> LspProgressUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LspProgressUpdate
impl Debug for LspProgressUpdate
Source§impl Event for LspProgressUpdate
impl Event for LspProgressUpdate
Source§fn event_type_id(&self) -> EventTypeId
fn event_type_id(&self) -> EventTypeId
The type-id under which this event is registered.
Implementors typically delegate to a
static to avoid
re-allocating the metadata on every call. The macro
register_event! generates this for you.Auto Trait Implementations§
impl Freeze for LspProgressUpdate
impl RefUnwindSafe for LspProgressUpdate
impl Send for LspProgressUpdate
impl Sync for LspProgressUpdate
impl Unpin for LspProgressUpdate
impl UnsafeUnpin for LspProgressUpdate
impl UnwindSafe for LspProgressUpdate
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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