Skip to navigation

Struct Snapshot 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 SnapshotLease { /* private fields */ }

A bounded serialized page. Dropping the lease returns its workspace permit; it owns copied bytes and never pins retained history or a component lease.

Implementations

impl SnapshotLease

impl SnapshotLease

as_bytes

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

Borrow the canonical JSON response while retaining its workspace permit.

to_snapshot

pub fn to_snapshot(&self) -> Result<DiagnosticSnapshot, Error>

Decode an independently owned snapshot. These new allocations belong to the caller and are outside the diagnostic service’s storage guarantee.

Trait Implementations

impl Debug for SnapshotLease

impl Debug for SnapshotLease

fmt

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

impl Drop for SnapshotLease

impl Drop for SnapshotLease

drop

fn drop(&mut self)