Struct lsp_types::WorkDoneProgressBegin [−][src]
Fields
title: String
Mandatory title of the progress operation. Used to briefly inform about the kind of operation being performed. Examples: "Indexing" or "Linking dependencies".
cancellable: Option<bool>
Controls if a cancel button should show to allow the user to cancel the long running operation. Clients that don't support cancellation are allowed to ignore the setting.
message: Option<String>
Optional, more detailed associated progress message. Contains
complementary information to the title
.
Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". If unset, the previous progress message (if any) is still valid.
percentage: Option<u32>
Optional progress percentage to display (value 100 is considered 100%).
If not provided infinite progress is assumed and clients are allowed
to ignore the percentage
value in subsequent in report notifications.
The value should be steadily rising. Clients are free to ignore values that are not following this rule. The value range is [0, 100]
Trait Implementations
impl Clone for WorkDoneProgressBegin
[src]
fn clone(&self) -> WorkDoneProgressBegin
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WorkDoneProgressBegin
[src]
impl Default for WorkDoneProgressBegin
[src]
fn default() -> WorkDoneProgressBegin
[src]
impl<'de> Deserialize<'de> for WorkDoneProgressBegin
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<WorkDoneProgressBegin> for WorkDoneProgressBegin
[src]
fn eq(&self, other: &WorkDoneProgressBegin) -> bool
[src]
fn ne(&self, other: &WorkDoneProgressBegin) -> bool
[src]
impl Serialize for WorkDoneProgressBegin
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for WorkDoneProgressBegin
[src]
Auto Trait Implementations
impl RefUnwindSafe for WorkDoneProgressBegin
[src]
impl Send for WorkDoneProgressBegin
[src]
impl Sync for WorkDoneProgressBegin
[src]
impl Unpin for WorkDoneProgressBegin
[src]
impl UnwindSafe for WorkDoneProgressBegin
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,