pub struct RequestState {
pub request_id: Option<String>,
pub status: Option<StatusCode>,
pub payload_size: usize,
pub guard: Option<Guard>,
pub processing_count: i32,
pub accepted_count: u64,
pub location_processing_count: i32,
pub location_accepted_count: u64,
}Expand description
State related to the current request being processed.
Fields§
§request_id: Option<String>A unique identifier for the request.
status: Option<StatusCode>The HTTP status code of the response.
payload_size: usizeThe size of the request payload in bytes.
guard: Option<Guard>A guard for rate limiting, if applicable.
processing_count: i32The total number of requests currently being processed by the service.
accepted_count: u64The total number of requests accepted by the service.
location_processing_count: i32The number of requests currently being processed for this location.
location_accepted_count: u64The total number of requests accepted for this location.
Trait Implementations§
Source§impl Default for RequestState
impl Default for RequestState
Source§fn default() -> RequestState
fn default() -> RequestState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestState
impl RefUnwindSafe for RequestState
impl Send for RequestState
impl Sync for RequestState
impl Unpin for RequestState
impl UnsafeUnpin for RequestState
impl UnwindSafe for RequestState
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