pub struct IdempotencyBuilder(/* private fields */);Available on crate feature
plugins only.Expand description
Builder for the idempotency plugin.
Implementations§
Source§impl IdempotencyBuilder
impl IdempotencyBuilder
Sourcepub fn new() -> IdempotencyBuilder
pub fn new() -> IdempotencyBuilder
Start with sensible defaults.
pub fn header(self, h: HeaderName) -> IdempotencyBuilder
pub fn methods(self, m: &[Method]) -> IdempotencyBuilder
pub fn ttl_secs(self, s: u64) -> IdempotencyBuilder
pub fn scope(self, s: Scope) -> IdempotencyBuilder
pub fn coalesce_inflight(self, yes: bool) -> IdempotencyBuilder
pub fn inflight_wait_timeout_ms(self, ms: Option<u64>) -> IdempotencyBuilder
pub fn max_cached_body_bytes(self, n: usize) -> IdempotencyBuilder
pub fn max_request_body_bytes(self, n: usize) -> IdempotencyBuilder
pub fn verify_payload(self, yes: bool) -> IdempotencyBuilder
pub fn cache_error_statuses(self, yes: bool) -> IdempotencyBuilder
pub fn build(self) -> IdempotencyPlugin
Trait Implementations§
Source§impl Default for IdempotencyBuilder
impl Default for IdempotencyBuilder
Source§fn default() -> IdempotencyBuilder
fn default() -> IdempotencyBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for IdempotencyBuilder
impl RefUnwindSafe for IdempotencyBuilder
impl Send for IdempotencyBuilder
impl Sync for IdempotencyBuilder
impl Unpin for IdempotencyBuilder
impl UnsafeUnpin for IdempotencyBuilder
impl UnwindSafe for IdempotencyBuilder
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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