[][src]Struct climer::prelude::TimerBuilder

pub struct TimerBuilder { /* fields omitted */ }

The builder struct for Timer.

Methods

impl TimerBuilder[src]

pub fn time<T>(self, time: T) -> Self where
    T: ToString
[src]

Set the time as a string.

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]

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]

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]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]