pub struct StatusUpdate<T> {
pub finished: bool,
pub message: String,
pub percent_done: f64,
pub time: u32,
pub data: Option<T>,
}Expand description
The format for all status updates. May contain some data.
Fields§
§finished: bool§message: String§percent_done: f64§time: u32§data: Option<T>Trait Implementations§
Source§impl<T: Debug> Debug for StatusUpdate<T>
impl<T: Debug> Debug for StatusUpdate<T>
Source§impl<'de, T> Deserialize<'de> for StatusUpdate<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for StatusUpdate<T>where
T: Deserialize<'de>,
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<T> Freeze for StatusUpdate<T>where
T: Freeze,
impl<T> RefUnwindSafe for StatusUpdate<T>where
T: RefUnwindSafe,
impl<T> Send for StatusUpdate<T>where
T: Send,
impl<T> Sync for StatusUpdate<T>where
T: Sync,
impl<T> Unpin for StatusUpdate<T>where
T: Unpin,
impl<T> UnwindSafe for StatusUpdate<T>where
T: UnwindSafe,
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