#[non_exhaustive]pub struct CurrentUpdate {
pub name: String,
pub total_item_count: u64,
pub total_duration_ms: f64,
pub average_items_per_ms: f64,
}
Expand description
Information about a current update.
To create an instance of this type, first create a CurrentUpdateInit
and convert it via
CurrentUpdate::from
/ .into()
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
Name of the update.
total_item_count: u64
Total number of processed “items”.
total_duration_ms: f64
Runtime of background process, not including sleeping time.
average_items_per_ms: f64
Items processed per millisecond based on an exponential average.
Trait Implementations§
Source§impl Clone for CurrentUpdate
impl Clone for CurrentUpdate
Source§fn clone(&self) -> CurrentUpdate
fn clone(&self) -> CurrentUpdate
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 CurrentUpdate
impl Debug for CurrentUpdate
Source§impl<'de> Deserialize<'de> for CurrentUpdate
impl<'de> Deserialize<'de> for CurrentUpdate
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 From<CurrentUpdateInit> for CurrentUpdate
impl From<CurrentUpdateInit> for CurrentUpdate
Source§fn from(value: CurrentUpdateInit) -> Self
fn from(value: CurrentUpdateInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CurrentUpdate
impl PartialEq for CurrentUpdate
Source§impl Serialize for CurrentUpdate
impl Serialize for CurrentUpdate
impl StructuralPartialEq for CurrentUpdate
Auto Trait Implementations§
impl Freeze for CurrentUpdate
impl RefUnwindSafe for CurrentUpdate
impl Send for CurrentUpdate
impl Sync for CurrentUpdate
impl Unpin for CurrentUpdate
impl UnwindSafe for CurrentUpdate
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