pub struct TransferProgress {
pub transfer_id: String,
pub current_file: Option<String>,
pub bytes_transferred: u64,
pub total_bytes: u64,
pub speed_bps: u64,
}Expand description
Progress update for an ongoing transfer
Fields§
§transfer_id: StringTransfer ID
current_file: Option<String>Current file being transferred
bytes_transferred: u64Bytes transferred so far
total_bytes: u64Total bytes to transfer
speed_bps: u64Transfer speed in bytes/sec
Trait 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 · 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 TransferProgress
impl Debug for TransferProgress
Source§impl<'de> Deserialize<'de> for TransferProgress
impl<'de> Deserialize<'de> for TransferProgress
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 Freeze for TransferProgress
impl RefUnwindSafe for TransferProgress
impl Send for TransferProgress
impl Sync for TransferProgress
impl Unpin 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