pub struct SnapshotReservation { /* private fields */ }Expand description
Retention lease held alongside an opaque snapshot or child state. Cloning the lease is only for handles sharing that same object; copying native state needs another reservation. Final drop releases retained resources, not cumulative work.
Implementations§
Source§impl SnapshotReservation
impl SnapshotReservation
Sourcepub fn retained_bytes(&self) -> u64
pub fn retained_bytes(&self) -> u64
Logical storage charged while any handle to this exact object is retained.
Trait Implementations§
Source§impl Clone for SnapshotReservation
impl Clone for SnapshotReservation
Source§fn clone(&self) -> SnapshotReservation
fn clone(&self) -> SnapshotReservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SnapshotReservation
impl !Send for SnapshotReservation
impl !Sync for SnapshotReservation
impl !UnwindSafe for SnapshotReservation
impl Freeze for SnapshotReservation
impl Unpin for SnapshotReservation
impl UnsafeUnpin for SnapshotReservation
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