pub struct QueueRegistry { /* private fields */ }Expand description
Process-global registry of every live QueueGauge.
Implementations§
Source§impl QueueRegistry
impl QueueRegistry
Sourcepub fn global() -> &'static QueueRegistry
pub fn global() -> &'static QueueRegistry
The shared registry. All secure-exec bounded queues register here so
their usage can be inspected from one place.
Sourcepub fn register(&self, name: TrackedLimit, capacity: usize) -> Arc<QueueGauge> ⓘ
pub fn register(&self, name: TrackedLimit, capacity: usize) -> Arc<QueueGauge> ⓘ
Register a new bounded limit and return its gauge. Dropping the returned
Arc (and all clones) removes the limit from future snapshots.
Sourcepub fn snapshot(&self) -> Vec<QueueSnapshot>
pub fn snapshot(&self) -> Vec<QueueSnapshot>
Snapshot the live usage of every registered queue, pruning dead entries.
Trait Implementations§
Source§impl Default for QueueRegistry
impl Default for QueueRegistry
Source§fn default() -> QueueRegistry
fn default() -> QueueRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for QueueRegistry
impl RefUnwindSafe for QueueRegistry
impl Send for QueueRegistry
impl Sync for QueueRegistry
impl Unpin for QueueRegistry
impl UnsafeUnpin for QueueRegistry
impl UnwindSafe for QueueRegistry
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