pub struct IdempotencyLayerState {
pub store: IdempotencyStore,
pub class: IdempotencyClass,
}Expand description
State passed to idempotency_middleware via
axum::middleware::from_fn_with_state. Cheap to clone — the
underlying IdempotencyStore is Arc-shared.
Fields§
§store: IdempotencyStore§class: IdempotencyClassTrait Implementations§
Source§impl Clone for IdempotencyLayerState
impl Clone for IdempotencyLayerState
Source§fn clone(&self) -> IdempotencyLayerState
fn clone(&self) -> IdempotencyLayerState
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for IdempotencyLayerState
impl !UnwindSafe for IdempotencyLayerState
impl Freeze for IdempotencyLayerState
impl Send for IdempotencyLayerState
impl Sync for IdempotencyLayerState
impl Unpin for IdempotencyLayerState
impl UnsafeUnpin for IdempotencyLayerState
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