pub struct TransferProgress {
pub file_name: String,
pub bytes: u64,
pub total_bytes: Option<u64>,
pub speed_bps: f64,
pub percent: f32,
pub done: bool,
pub failed: bool,
}Expand description
Progress information for upload/download operations.
Fields§
§file_name: String§bytes: u64§total_bytes: Option<u64>§speed_bps: f64§percent: f32§done: bool§failed: boolTrait Implementations§
Source§impl Clone for TransferProgress
impl Clone for TransferProgress
Source§fn clone(&self) -> TransferProgress
fn clone(&self) -> TransferProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TransferProgress
impl RefUnwindSafe for TransferProgress
impl Send for TransferProgress
impl Sync for TransferProgress
impl Unpin for TransferProgress
impl UnsafeUnpin for TransferProgress
impl UnwindSafe for TransferProgress
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