pub struct CallbackConfig {
pub bearer: Option<Secret>,
pub idempotency_window_ms: u64,
pub max_request_bytes: u64,
pub max_response_bytes: u64,
pub cancellation: CancelSupport,
pub invalidation: InvalidationSupport,
pub max_in_flight: usize,
pub max_remembered: usize,
pub max_invalidations: usize,
}Expand description
Server-wide terms and bounds of the context protocol.
Fields§
§bearer: Option<Secret>Required on every request when set.
idempotency_window_ms: u64§max_request_bytes: u64§max_response_bytes: u64§cancellation: CancelSupport§invalidation: InvalidationSupport§max_in_flight: usizeRequests in flight beyond this are refused 503.
max_remembered: usizeAttempt ids and decision ids remembered at most each; beyond it, with
none expired, requests are refused 503.
max_invalidations: usizeInvalidation items retained for polling; older ones are dropped, which a poller sees as a sequence gap.
Trait Implementations§
Source§impl Clone for CallbackConfig
impl Clone for CallbackConfig
Auto Trait Implementations§
impl Freeze for CallbackConfig
impl RefUnwindSafe for CallbackConfig
impl Send for CallbackConfig
impl Sync for CallbackConfig
impl Unpin for CallbackConfig
impl UnsafeUnpin for CallbackConfig
impl UnwindSafe for CallbackConfig
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