pub struct ProgressUpdateEvent {
pub progress_id: String,
pub message: Option<String>,
pub percentage: Option<u64>,
}
Expand description
The event signals that the progress reporting needs to be updated with a new message and/or percentage.
The client does not have to update the UI immediately, but the clients needs to keep track of the message and/or percentage values.
This event should only be sent if the corresponding capability supportsProgressReporting
is true.
Fields§
§progress_id: String
The ID that was introduced in the initial progressStart
event.
message: Option<String>
More detailed progress message. If omitted, the previous message (if any) is used.
percentage: Option<u64>
Progress percentage to display (value range: 0 to 100). If omitted no percentage is shown.
Trait Implementations§
Source§impl Clone for ProgressUpdateEvent
impl Clone for ProgressUpdateEvent
Source§fn clone(&self) -> ProgressUpdateEvent
fn clone(&self) -> ProgressUpdateEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ProgressUpdateEvent
impl Debug for ProgressUpdateEvent
Source§impl<'de> Deserialize<'de> for ProgressUpdateEvent
impl<'de> Deserialize<'de> for ProgressUpdateEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProgressUpdateEvent
impl RefUnwindSafe for ProgressUpdateEvent
impl Send for ProgressUpdateEvent
impl Sync for ProgressUpdateEvent
impl Unpin for ProgressUpdateEvent
impl UnwindSafe for ProgressUpdateEvent
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