pub struct ServerConfig {
pub bearer: Option<Secret>,
pub idempotency_window_ms: u64,
pub max_request_bytes: u64,
pub max_response_bytes: u64,
pub cancellation: CancelSupport,
pub batching: Batching,
pub refusals_charged: bool,
pub max_in_flight: usize,
pub cancel_wait_ms: u64,
pub max_remembered: usize,
pub versions: Vec<u32>,
}Expand description
Server-wide terms and limits.
Fields§
§bearer: Option<Secret>Required on every request when set.
idempotency_window_ms: u64§max_request_bytes: u64§max_response_bytes: u64§cancellation: CancelSupport§batching: BatchingOff by default (3.10.4).
refusals_charged: boolRefusals here are never charged, so the default is false.
max_in_flight: usizeRequests in flight beyond this are refused 503 (overloaded).
cancel_wait_ms: u64How long a cancel waits for the hosted backend’s acknowledgement.
max_remembered: usizeAttempt ids remembered at most; beyond it, and with none expired,
requests are refused 503.
versions: Vec<u32>The protocol major versions served; [1] by default. With 2, a
request may carry a principal reference (spec 020, 3.6), which the
hosted backend receives as its opaque principal handle.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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