pub struct WorkflowRunWaitOptions {
pub timeout: Option<Duration>,
pub poll_interval: Duration,
}Fields§
§timeout: Option<Duration>Maximum time to wait for a declared result. None opts into waiting
indefinitely. A zero timeout performs one bounded storage lookup and
returns Timeout if the result is not already committed.
poll_interval: DurationFallback polling cadence while waiting. Values below 1ms are rounded up.
A waiting handle first tries to hold a dedicated PostgreSQL LISTEN connection, then falls back to polling if LISTEN cannot be established. Size connection pools for concurrent waiters, especially when opting into unbounded waits.
Trait Implementations§
Source§impl Clone for WorkflowRunWaitOptions
impl Clone for WorkflowRunWaitOptions
Source§fn clone(&self) -> WorkflowRunWaitOptions
fn clone(&self) -> WorkflowRunWaitOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WorkflowRunWaitOptions
Source§impl Debug for WorkflowRunWaitOptions
impl Debug for WorkflowRunWaitOptions
Auto Trait Implementations§
impl Freeze for WorkflowRunWaitOptions
impl RefUnwindSafe for WorkflowRunWaitOptions
impl Send for WorkflowRunWaitOptions
impl Sync for WorkflowRunWaitOptions
impl Unpin for WorkflowRunWaitOptions
impl UnsafeUnpin for WorkflowRunWaitOptions
impl UnwindSafe for WorkflowRunWaitOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more