pub struct MemoryAPIHandler { /* private fields */ }
Expand description
An API handler for reporting the memory bounds and usage of all components.
This handler exposes a single route – /memory/status
– which returns the overall bounds and live usage of each
registered component.
Trait Implementations§
Source§impl APIHandler for MemoryAPIHandler
impl APIHandler for MemoryAPIHandler
type State = MemoryRegistryState
fn generate_initial_state(&self) -> Self::State
fn generate_routes(&self) -> Router<Self::State>
Auto Trait Implementations§
impl Freeze for MemoryAPIHandler
impl RefUnwindSafe for MemoryAPIHandler
impl Send for MemoryAPIHandler
impl Sync for MemoryAPIHandler
impl Unpin for MemoryAPIHandler
impl UnwindSafe for MemoryAPIHandler
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Track for T
impl<T> Track for T
Source§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self> ⓘ
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self> ⓘ
Instruments this type by attaching the given allocation group token, returning a
Tracked
wrapper. Read more