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.