#[non_exhaustive]pub struct ProgressSnapshot {
pub bytes: u64,
pub pending: usize,
pub busy_for: Option<Duration>,
pub since_progress: Option<Duration>,
pub errors: u64,
}Expand description
Progress in one direction. Samples are approximate during concurrent I/O.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bytes: u64Bytes accepted by successful transport calls, not application acknowledgements.
pending: usizeI/O calls currently in progress. This does not count application jobs.
busy_for: Option<Duration>Time since this direction became continuously busy; not a job deadline.
since_progress: Option<Duration>Time since the last nonempty transfer; None until the first transfer.
errors: u64Failed I/O calls, excluding Interrupted and WouldBlock.
Trait Implementations§
Source§impl Clone for ProgressSnapshot
impl Clone for ProgressSnapshot
impl Copy for ProgressSnapshot
Source§impl Debug for ProgressSnapshot
impl Debug for ProgressSnapshot
impl Eq for ProgressSnapshot
Source§impl PartialEq for ProgressSnapshot
impl PartialEq for ProgressSnapshot
impl StructuralPartialEq for ProgressSnapshot
Auto Trait Implementations§
impl Freeze for ProgressSnapshot
impl RefUnwindSafe for ProgressSnapshot
impl Send for ProgressSnapshot
impl Sync for ProgressSnapshot
impl Unpin for ProgressSnapshot
impl UnsafeUnpin for ProgressSnapshot
impl UnwindSafe for ProgressSnapshot
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