pub struct RuntimeResources { /* private fields */ }Expand description
Process-wide resource capabilities owned by crate::RuntimeOwner.
Clones share the same budget tree. Components derive narrower child
budgets from Self::process_budget instead of detecting process limits
or creating independent roots.
Implementations§
Source§impl RuntimeResources
impl RuntimeResources
Sourcepub const fn memory_limit(&self) -> ProcessMemoryLimit
pub const fn memory_limit(&self) -> ProcessMemoryLimit
Returns the detected or explicitly configured process memory limit.
Sourcepub const fn memory_budget(&self) -> ManagedMemoryBudget
pub const fn memory_budget(&self) -> ManagedMemoryBudget
Returns the managed memory budget the ledger charges.
Sourcepub fn process_budget(&self) -> ResourceBudget
pub fn process_budget(&self) -> ResourceBudget
Returns the shared process resource-budget root.
Sourcepub fn metadata_target_stats(&self) -> MetadataTargetRegistryStats
pub fn metadata_target_stats(&self) -> MetadataTargetRegistryStats
Returns retained target capacity and ownership counts without paths.
Trait Implementations§
Source§impl Clone for RuntimeResources
impl Clone for RuntimeResources
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeResources
impl !UnwindSafe for RuntimeResources
impl Freeze for RuntimeResources
impl Send for RuntimeResources
impl Sync for RuntimeResources
impl Unpin for RuntimeResources
impl UnsafeUnpin for RuntimeResources
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