pub struct TimerBuilder { /* private fields */ }
Expand description
The builder struct for Timer
.
Implementations§
Source§impl TimerBuilder
impl TimerBuilder
Sourcepub fn start_time(self, start_time: Time) -> Self
pub fn start_time(self, start_time: Time) -> Self
Set the start_time
Time
.
Sourcepub fn format<T>(self, format: T) -> Selfwhere
T: ToString,
pub fn format<T>(self, format: T) -> Selfwhere
T: ToString,
TODO: Unimplemented
Set the format
string, used for parsing the given time string.
Sourcepub fn print_interval(self, print_interval: Time) -> Self
pub fn print_interval(self, print_interval: Time) -> Self
Set the interval in which output should be printed to stdout.
Sourcepub fn write<T>(self, write: T) -> Selfwhere
T: ToString,
pub fn write<T>(self, write: T) -> Selfwhere
T: ToString,
Set a file for the output to be written to, instead of stdout.
Sourcepub fn continue_after_finish(self, continue_after_finish: bool) -> Self
pub fn continue_after_finish(self, continue_after_finish: bool) -> Self
Specify if timer should continue timing into negative time after it finishes.
Sourcepub fn build(self) -> ClimerResult<Timer>
pub fn build(self) -> ClimerResult<Timer>
Build a Timer
.
Trait Implementations§
Source§impl Default for TimerBuilder
impl Default for TimerBuilder
Source§fn default() -> TimerBuilder
fn default() -> TimerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TimerBuilder
impl RefUnwindSafe for TimerBuilder
impl Send for TimerBuilder
impl Sync for TimerBuilder
impl Unpin for TimerBuilder
impl UnwindSafe for TimerBuilder
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