Struct delay_timer::entity::DelayTimerBuilder
source · [−]pub struct DelayTimerBuilder { /* private fields */ }Expand description
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
Build DelayTimer.
Required features
This function requires the tokio-support feature of the delay_timer
crate to be enabled.
With this API, DelayTimer use default Smol-Runtime is generated internally.
With this API, DelayTimer use default TokioRuntime is generated internally.
By default the internal runtime is Tokio, this API does not require a user-initiated call.
With this API, DelayTimer internally use the user customized and independent TokioRuntime.
With this api, DelayTimer internal will share a TokioRuntime with the user .
Required features
This function requires the status-report feature of the delay_timer
crate to be enabled.
This is supported on crate feature status-report only.
status-report only.Whether to expose public events.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for DelayTimerBuilder
impl Send for DelayTimerBuilder
impl Sync for DelayTimerBuilder
impl Unpin for DelayTimerBuilder
impl !UnwindSafe for DelayTimerBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output; where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output; where
S: Into<Dispatch>,
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more