#[non_exhaustive]pub struct CallOptions { /* private fields */ }Expand description
How the calls of one service client are sent, where that differs from
the Client’s settings: give it to a generated client’s
with_options, such as ProjectClient::with_options, for the calls
made through the client it returns. Waiting on an operation such a call
answers with follows the client’s settings again.
let once = origincloud_core::CallOptions::new().max_attempts(1);
assert_eq!(once.attempts(), Some(1));Implementations§
Source§impl CallOptions
impl CallOptions
Sourcepub fn max_attempts(self, attempts: u32) -> Self
pub fn max_attempts(self, attempts: u32) -> Self
Sends a retryable call attempts times at most, the first included,
instead of ClientBuilder::max_attempts; 1, or 0, turns retries
off, for a mutation that must not be sent twice even with its
request id. A call the API refused for its consistency token alone
is sent again all the same, as the API refused it before doing
anything.
Trait Implementations§
Source§impl Clone for CallOptions
impl Clone for CallOptions
Source§impl Debug for CallOptions
impl Debug for CallOptions
Source§impl Default for CallOptions
impl Default for CallOptions
impl Eq for CallOptions
Source§impl PartialEq for CallOptions
impl PartialEq for CallOptions
impl StructuralPartialEq for CallOptions
Auto Trait Implementations§
impl Forget for CallOptions
impl Freeze for CallOptions
impl Move for CallOptions
impl RefUnwindSafe for CallOptions
impl Send for CallOptions
impl Sync for CallOptions
impl Unpin for CallOptions
impl UnsafeUnpin for CallOptions
impl UnwindSafe for CallOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.