pub struct Progress {
pub file_name: String,
pub percentage: u8,
pub bytes_sent: Option<u64>,
pub bytes_total: Option<u64>,
pub speed: Option<f64>,
}Expand description
Represents progress of an ongoing operation.
Fields§
§file_name: StringThe name of the file being processed.
percentage: u8The current progress percentage (0-100).
bytes_sent: Option<u64>The number of bytes transferred so far, if available.
bytes_total: Option<u64>The total number of bytes to transfer, if available.
speed: Option<f64>The current transfer speed in bytes per second, if available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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