pub struct Options {
pub call_timeout: Duration,
pub upload_timeout: Duration,
pub retry_transport: bool,
}Expand description
Timeouts. A single API call and the upload of a multi-hundred-MiB medium cannot share one budget without one of them being wrong.
Fields§
§call_timeout: DurationOne API call, not a procedure.
upload_timeout: DurationOne PUT of a medium.
retry_transport: boolRetry a TRANSPORT failure within net::Budget (reads always, writes
only when nothing left this box). false sends every call exactly once
— for a caller whose own contract is “one attempt, the caller retries”,
which is monetize-cloud-impl’s.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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