pub struct WaiterOrchestratorBuilder<AcceptorFn = (), OperationFn = ()> { /* private fields */ }
Expand description
Builder for WaiterOrchestrator
.
Implementations§
source§impl<AcceptorFn, OperationFn> WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
impl<AcceptorFn, OperationFn> WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
sourcepub fn max_wait(self, max_wait: Duration) -> Self
pub fn max_wait(self, max_wait: Duration) -> Self
Set the maximum total wait time for the waiter.
sourcepub fn time_source(self, time_source: SharedTimeSource) -> Self
pub fn time_source(self, time_source: SharedTimeSource) -> Self
Set the time source the waiter will use.
sourcepub fn sleep_impl(self, sleep_impl: SharedAsyncSleep) -> Self
pub fn sleep_impl(self, sleep_impl: SharedAsyncSleep) -> Self
Set the async sleep implementation the waiter will use to delay.
sourcepub fn build(self) -> WaiterOrchestrator<AcceptorFn, OperationFn>
pub fn build(self) -> WaiterOrchestrator<AcceptorFn, OperationFn>
Build a waiter orchestrator.
source§impl<OperationFn> WaiterOrchestratorBuilder<(), OperationFn>
impl<OperationFn> WaiterOrchestratorBuilder<(), OperationFn>
sourcepub fn acceptor<AcceptorFn>(
self,
acceptor: AcceptorFn,
) -> WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
pub fn acceptor<AcceptorFn>( self, acceptor: AcceptorFn, ) -> WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
Set the acceptor function for the waiter.
source§impl<AcceptorFn> WaiterOrchestratorBuilder<AcceptorFn, ()>
impl<AcceptorFn> WaiterOrchestratorBuilder<AcceptorFn, ()>
sourcepub fn operation<OperationFn>(
self,
operation: OperationFn,
) -> WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
pub fn operation<OperationFn>( self, operation: OperationFn, ) -> WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
Set the operation function for the waiter.
Trait Implementations§
Auto Trait Implementations§
impl<AcceptorFn, OperationFn> Freeze for WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
impl<AcceptorFn = (), OperationFn = ()> !RefUnwindSafe for WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
impl<AcceptorFn, OperationFn> Send for WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
impl<AcceptorFn, OperationFn> Sync for WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
impl<AcceptorFn, OperationFn> Unpin for WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
impl<AcceptorFn = (), OperationFn = ()> !UnwindSafe for WaiterOrchestratorBuilder<AcceptorFn, OperationFn>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.