pub struct SnapshotExportLimits {
pub max_nodes: usize,
pub max_bytes: usize,
}Expand description
Hard resource limits for exporting one portable tree snapshot.
Both limits must be nonzero. Export stops before retaining data beyond either limit, so callers can safely derive these values from an operational memory budget.
Fields§
§max_nodes: usizeMaximum number of unique reachable nodes in the exported tree.
max_bytes: usizeMaximum total bytes of canonical serialized node payloads.
Implementations§
Trait Implementations§
Source§impl Clone for SnapshotExportLimits
impl Clone for SnapshotExportLimits
Source§fn clone(&self) -> SnapshotExportLimits
fn clone(&self) -> SnapshotExportLimits
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 moreimpl Copy for SnapshotExportLimits
Source§impl Debug for SnapshotExportLimits
impl Debug for SnapshotExportLimits
impl Eq for SnapshotExportLimits
Source§impl PartialEq for SnapshotExportLimits
impl PartialEq for SnapshotExportLimits
impl StructuralPartialEq for SnapshotExportLimits
Auto Trait Implementations§
impl Freeze for SnapshotExportLimits
impl RefUnwindSafe for SnapshotExportLimits
impl Send for SnapshotExportLimits
impl Sync for SnapshotExportLimits
impl Unpin for SnapshotExportLimits
impl UnsafeUnpin for SnapshotExportLimits
impl UnwindSafe for SnapshotExportLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more