pub struct Progress {
pub delivered: Option<u64>,
pub elapsed: Option<Duration>,
}Expand description
What a host can see about a wait that is running.
The renderer’s input beside Awaiting, never part of a description:
how much has landed and how long it has taken are facts about a transfer in
flight, which only whoever runs the transfer knows.
Fields§
§delivered: Option<u64>How much has arrived, in the unit Awaiting::amount counted.
None means nothing is watching the transfer.
elapsed: Option<Duration>How long the wait has lasted so far.
Trait Implementations§
impl Copy for Progress
impl Eq for Progress
impl StructuralPartialEq for Progress
Auto Trait Implementations§
impl Forget for Progress
impl Freeze for Progress
impl Move 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