pub struct TrackConfig {
pub total: Option<f64>,
pub completed: f64,
pub task_id: Option<TaskID>,
pub description: String,
pub update_period: Duration,
}Fields§
§total: Option<f64>§completed: f64§task_id: Option<TaskID>§description: String§update_period: DurationImplementations§
Source§impl TrackConfig
impl TrackConfig
pub fn new(description: impl Into<String>) -> Self
pub fn with_total(self, total: Option<f64>) -> Self
pub fn with_completed(self, completed: f64) -> Self
pub fn with_task_id(self, task_id: TaskID) -> Self
pub fn with_update_period(self, update_period: Duration) -> Self
Trait Implementations§
Source§impl Clone for TrackConfig
impl Clone for TrackConfig
Source§fn clone(&self) -> TrackConfig
fn clone(&self) -> TrackConfig
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 moreAuto Trait Implementations§
impl Freeze for TrackConfig
impl RefUnwindSafe for TrackConfig
impl Send for TrackConfig
impl Sync for TrackConfig
impl Unpin for TrackConfig
impl UnwindSafe for TrackConfig
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