pub struct EnhancedProgressNotification {
pub token: ProgressToken,
pub message: Option<String>,
pub percentage: Option<f32>,
pub total: Option<u64>,
pub current: u64,
}
Expand description
Enhanced progress notification
Fields§
§token: ProgressToken
§message: Option<String>
§percentage: Option<f32>
§total: Option<u64>
§current: u64
Trait Implementations§
Source§impl Clone for EnhancedProgressNotification
impl Clone for EnhancedProgressNotification
Source§fn clone(&self) -> EnhancedProgressNotification
fn clone(&self) -> EnhancedProgressNotification
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 EnhancedProgressNotification
impl Debug for EnhancedProgressNotification
Source§impl<'de> Deserialize<'de> for EnhancedProgressNotification
impl<'de> Deserialize<'de> for EnhancedProgressNotification
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
Source§impl PartialEq for EnhancedProgressNotification
impl PartialEq for EnhancedProgressNotification
Source§fn eq(&self, other: &EnhancedProgressNotification) -> bool
fn eq(&self, other: &EnhancedProgressNotification) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for EnhancedProgressNotification
Auto Trait Implementations§
impl Freeze for EnhancedProgressNotification
impl RefUnwindSafe for EnhancedProgressNotification
impl Send for EnhancedProgressNotification
impl Sync for EnhancedProgressNotification
impl Unpin for EnhancedProgressNotification
impl UnwindSafe for EnhancedProgressNotification
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