pub struct ProgressConfig { /* private fields */ }Expand description
Controls how frequently progress callbacks are fired.
Events are emitted only when at least min_bytes have been transferred
since the last event or min_interval has elapsed, whichever comes
first. This prevents flooding the caller with high-frequency callbacks on
fast connections.
Implementations§
Trait Implementations§
Source§impl Clone for ProgressConfig
impl Clone for ProgressConfig
Source§fn clone(&self) -> ProgressConfig
fn clone(&self) -> ProgressConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProgressConfig
Source§impl Debug for ProgressConfig
impl Debug for ProgressConfig
Source§impl Default for ProgressConfig
impl Default for ProgressConfig
impl Eq for ProgressConfig
Source§impl PartialEq for ProgressConfig
impl PartialEq for ProgressConfig
Source§fn eq(&self, other: &ProgressConfig) -> bool
fn eq(&self, other: &ProgressConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProgressConfig
Auto Trait Implementations§
impl Freeze for ProgressConfig
impl RefUnwindSafe for ProgressConfig
impl Send for ProgressConfig
impl Sync for ProgressConfig
impl Unpin for ProgressConfig
impl UnsafeUnpin for ProgressConfig
impl UnwindSafe for ProgressConfig
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