pub struct GetResultTimeouts {
pub first_request_delay: Duration,
pub first_request_no_cache_delay: Duration,
pub requests_interval: Duration,
pub timeout: Duration,
}Expand description
How long to wait before the first poll, how often to poll, and when to give up.
Fields§
§first_request_delay: DurationPause between createTask and the first getTaskResult.
first_request_no_cache_delay: DurationSame as above for the “no cache” mode. Kept for parity with the other SDKs; currently unused.
requests_interval: DurationPause between two consecutive getTaskResult calls.
timeout: DurationTotal time after which Error::Timeout is returned.
Implementations§
Trait Implementations§
Source§impl Clone for GetResultTimeouts
impl Clone for GetResultTimeouts
impl Copy for GetResultTimeouts
Source§impl Debug for GetResultTimeouts
impl Debug for GetResultTimeouts
Source§impl PartialEq for GetResultTimeouts
impl PartialEq for GetResultTimeouts
impl StructuralPartialEq for GetResultTimeouts
Auto Trait Implementations§
impl Freeze for GetResultTimeouts
impl RefUnwindSafe for GetResultTimeouts
impl Send for GetResultTimeouts
impl Sync for GetResultTimeouts
impl Unpin for GetResultTimeouts
impl UnsafeUnpin for GetResultTimeouts
impl UnwindSafe for GetResultTimeouts
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