Struct delay_timer::entity::DelayTimerBuilder[][src]

pub struct DelayTimerBuilder { /* fields omitted */ }

Builds DelayTimer with custom configuration values.

Methods can be chained in order to set the configuration values. The DelayTimer is constructed by calling build.

Examples

use delay_timer::entity::DelayTimerBuilder;

Implementations

impl DelayTimerBuilder[src]

pub fn build(self) -> DelayTimer[src]

Build DelayTimer.

impl DelayTimerBuilder[src]

Required features

This function requires the tokio-support feature of the delay_timer crate to be enabled.

pub fn tokio_runtime(self, rt: Option<Arc<Runtime>>) -> Self[src]

This is supported on crate feature tokio-support only.

With this API, let DelayTimer internally use the user custom TokioRuntime. If None is given, a custom TokioRuntime is generated internally.

impl DelayTimerBuilder[src]

Required features

This function requires the status-report feature of the delay_timer crate to be enabled.

pub fn enable_status_report(self) -> Self[src]

This is supported on crate feature status-report only.

Whether to expose public events.

Trait Implementations

impl Clone for DelayTimerBuilder[src]

impl Debug for DelayTimerBuilder[src]

impl Default for DelayTimerBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.