pub struct ProgressOptions {
pub enabled: ProgressEnabled,
pub prefix: String,
pub width: Option<u16>,
pub finish: ProgressFinish,
pub draw_target: ProgressDrawTarget,
}Fields§
§enabled: ProgressEnabled§prefix: String§width: Option<u16>Fixed terminal width used by writer-based draw targets (tests).
finish: ProgressFinish§draw_target: ProgressDrawTargetImplementations§
Source§impl ProgressOptions
impl ProgressOptions
pub fn with_enabled(self, enabled: ProgressEnabled) -> Self
pub fn with_prefix(self, prefix: impl Into<String>) -> Self
pub fn with_width(self, width: Option<u16>) -> Self
pub fn with_finish(self, finish: ProgressFinish) -> Self
pub fn with_draw_target(self, draw_target: ProgressDrawTarget) -> Self
Trait Implementations§
Source§impl Clone for ProgressOptions
impl Clone for ProgressOptions
Source§fn clone(&self) -> ProgressOptions
fn clone(&self) -> ProgressOptions
Returns a duplicate 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 ProgressOptions
impl Debug for ProgressOptions
Auto Trait Implementations§
impl Freeze for ProgressOptions
impl RefUnwindSafe for ProgressOptions
impl Send for ProgressOptions
impl Sync for ProgressOptions
impl Unpin for ProgressOptions
impl UnsafeUnpin for ProgressOptions
impl UnwindSafe for ProgressOptions
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