#[non_exhaustive]pub struct RequestPoolSnapshot {
pub pool: RequestPool,
pub in_use: usize,
pub limit: usize,
pub waiting: usize,
pub oldest_wait: Option<Duration>,
}Expand description
Figures for one handler-slot pool at one moment, from
ModuleHandle::request_pool_snapshots.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pool: RequestPool§in_use: usizeSlots held by requests whose handlers are running.
limit: usizeThe pool’s number of slots.
waiting: usizeRequests received and waiting for a slot in this pool.
oldest_wait: Option<Duration>How long the request that has waited longest has been waiting, or
None when no request is waiting.
Trait Implementations§
Source§impl Clone for RequestPoolSnapshot
impl Clone for RequestPoolSnapshot
Source§impl Debug for RequestPoolSnapshot
impl Debug for RequestPoolSnapshot
impl Eq for RequestPoolSnapshot
Source§impl PartialEq for RequestPoolSnapshot
impl PartialEq for RequestPoolSnapshot
impl StructuralPartialEq for RequestPoolSnapshot
Auto Trait Implementations§
impl Forget for RequestPoolSnapshot
impl Freeze for RequestPoolSnapshot
impl Move for RequestPoolSnapshot
impl RefUnwindSafe for RequestPoolSnapshot
impl Send for RequestPoolSnapshot
impl Sync for RequestPoolSnapshot
impl Unpin for RequestPoolSnapshot
impl UnsafeUnpin for RequestPoolSnapshot
impl UnwindSafe for RequestPoolSnapshot
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