Struct Snapshot Lease
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.
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.
impl SnapshotLease
impl SnapshotLease
events
pub fn events(&self) -> impl ExactSizeIterator<Item = EventView<'_>>
Traverse only rows emitted on this page without decoding JSON or allocating. Views borrow copied workspace data; they cannot pin live history.
components
pub fn components(&self) -> impl ExactSizeIterator<Item = ComponentView<'_>>
Traverse the returned component prefix without allocating an owned DTO graph.
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)