Struct matrix_sdk::TransmissionProgress
source · pub struct TransmissionProgress {
pub current: usize,
pub total: usize,
}
Expand description
Progress of sending or receiving a payload.
Fields§
§current: usize
How many bytes were already transferred.
total: usize
How many bytes there are in total.
Trait Implementations§
source§impl Clone for TransmissionProgress
impl Clone for TransmissionProgress
source§fn clone(&self) -> TransmissionProgress
fn clone(&self) -> TransmissionProgress
Returns a copy 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 TransmissionProgress
impl Debug for TransmissionProgress
source§impl Default for TransmissionProgress
impl Default for TransmissionProgress
source§fn default() -> TransmissionProgress
fn default() -> TransmissionProgress
Returns the “default value” for a type. Read more
impl Copy for TransmissionProgress
Auto Trait Implementations§
impl RefUnwindSafe for TransmissionProgress
impl Send for TransmissionProgress
impl Sync for TransmissionProgress
impl Unpin for TransmissionProgress
impl UnwindSafe for TransmissionProgress
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