[−][src]Struct climer::prelude::TimerBuilder
The builder struct for Timer
.
Methods
impl TimerBuilder
[src]
pub fn time(self, time: Time) -> Self
[src]
Set the time
as a Time
.
pub fn time_str<T>(self, time_str: T) -> Self where
T: ToString,
[src]
T: ToString,
Set the time
as a string.
pub fn start_time(self, start_time: Time) -> Self
[src]
Set the start_time
Time
.
pub fn quiet(self, quiet: bool) -> Self
[src]
Set the quiet
flag, used for printing to stdout.
pub fn format<T>(self, format: T) -> Self where
T: ToString,
[src]
T: ToString,
TODO: Unimplemented
Set the format
string, used for parsing the given time string.
pub fn print_interval(self, print_interval: Time) -> Self
[src]
Set the interval in which output should be printed to stdout.
pub fn write<T>(self, write: T) -> Self where
T: ToString,
[src]
T: ToString,
Set a file for the output to be written to, instead of stdout.
pub fn build(self) -> ClimerResult<Timer>
[src]
Build a Timer
.
Trait Implementations
impl Default for TimerBuilder
[src]
fn default() -> TimerBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimerBuilder
impl Send for TimerBuilder
impl Sync for TimerBuilder
impl Unpin for TimerBuilder
impl UnwindSafe for TimerBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,