pub struct StackPolicy {
pub panic_body: PanicBody,
pub refusal_body: RefusalBody,
pub request_log: RequestLog,
pub meter: Option<Meter>,
}Expand description
What a product decides inside the stack: the body of a panicked request, the body of a refusal, the request log with its recorders and the meter of the stack’s own metrics.
Fields§
§panic_body: PanicBodyThe body of a panicked request.
refusal_body: RefusalBodyThe body of a refusal the stack writes: 408, 413, 415, 429,
503, and the 400 of an encoded body that does not decode.
request_log: RequestLogThe request log.
meter: Option<Meter>The meter the admission records its waits and refusals in
(crate::overload::Admission::with_metrics), such as
Telemetry::meter’s; unset, they are not recorded.
Trait Implementations§
Source§impl Clone for StackPolicy
impl Clone for StackPolicy
Source§impl Debug for StackPolicy
impl Debug for StackPolicy
Auto Trait Implementations§
impl !RefUnwindSafe for StackPolicy
impl !UnwindSafe for StackPolicy
impl Forget for StackPolicy
impl Freeze for StackPolicy
impl Move for StackPolicy
impl Send for StackPolicy
impl Sync for StackPolicy
impl Unpin for StackPolicy
impl UnsafeUnpin for StackPolicy
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