Skip to navigation

Struct Memory Inspection Lease

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct MemoryInspectionLease { /* private fields */ }

Memory inspection holds the same bounded permit as an ordinary snapshot. Borrowed iterators refer only to the copied page; dropping releases all storage.

Implementations

impl MemoryInspectionLease

impl MemoryInspectionLease

as_bytes

pub fn as_bytes(&self) -> &[u8]

Canonical bounded JSON; no allocation.

to_memory_page

pub fn to_memory_page(&self) -> Result<DiagnosticMemoryPage, Error>

Explicit caller-owned decode, outside the service budget.

components

pub fn components(
    &self,
) -> impl ExactSizeIterator<Item = ComponentMemoryView<'_>>

Allocation-free traversal of copied component rows.

entries

pub fn entries(&self) -> impl ExactSizeIterator<Item = EntryMemoryView<'_>>

Allocation-free traversal of copied entry rows.

aggregate

pub fn aggregate(&self) -> &DiagnosticMemoryUsage

Whole-context aggregate at the same capture revision.

component_occupied_bytes

pub fn component_occupied_bytes(&self) -> DiagnosticNumber

Complete attributed backing, including rows omitted by selection/paging.

shared_or_unassigned_reserved_bytes

pub fn shared_or_unassigned_reserved_bytes(&self) -> DiagnosticNumber

Shared and free reserved backing.

resource

pub fn resource(&self) -> &ResourceMemoryView

Independently copied resource context; no collection or allocation.

Trait Implementations

impl Debug for MemoryInspectionLease

impl Debug for MemoryInspectionLease

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result