pub struct ProgressEvent {
pub current: u64,
pub total: u64,
pub message: String,
pub elapsed: Duration,
pub eta: Option<Duration>,
pub finished: bool,
}Expand description
进度事件
Fields§
§current: u64当前完成数
total: u64总数
message: String进度消息
elapsed: Duration已用时间
eta: Option<Duration>预计剩余时间
finished: bool是否已完成
Implementations§
Source§impl ProgressEvent
impl ProgressEvent
Trait Implementations§
Source§impl Clone for ProgressEvent
impl Clone for ProgressEvent
Source§fn clone(&self) -> ProgressEvent
fn clone(&self) -> ProgressEvent
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 moreAuto Trait Implementations§
impl Freeze for ProgressEvent
impl RefUnwindSafe for ProgressEvent
impl Send for ProgressEvent
impl Sync for ProgressEvent
impl Unpin for ProgressEvent
impl UnwindSafe for ProgressEvent
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