Struct mio_extras::timer::Builder [−][src]
pub struct Builder { /* fields omitted */ }Used to create a Timer.
Implementations
impl Builder[src]
impl Builder[src]pub fn tick_duration(self, duration: Duration) -> Builder[src]
Set the tick duration. Default is 100ms.
pub fn num_slots(self, num_slots: usize) -> Builder[src]
Set the number of slots. Default is 256.
pub fn capacity(self, capacity: usize) -> Builder[src]
Set the capacity. Default is 65536.
pub fn build<T>(self) -> Timer<T>[src]
Build a Timer with the parameters set on this Builder.