pub struct MemorySnapshotRequest {
pub namespace: MemoryNamespace,
pub statuses: BTreeSet<MemoryStatus>,
pub max_nodes: usize,
pub max_bytes: usize,
}Expand description
Caller-selected scope and hard node/byte budgets for one exact repository view.
Fields§
§namespace: MemoryNamespace§statuses: BTreeSet<MemoryStatus>§max_nodes: usize§max_bytes: usizeImplementations§
Source§impl MemorySnapshotRequest
impl MemorySnapshotRequest
Sourcepub fn new(
namespace: MemoryNamespace,
max_nodes: usize,
max_bytes: usize,
) -> Self
pub fn new( namespace: MemoryNamespace, max_nodes: usize, max_bytes: usize, ) -> Self
Select the complete current Active view of one exact namespace.
pub fn with_statuses( self, statuses: impl IntoIterator<Item = MemoryStatus>, ) -> Self
Trait Implementations§
Source§impl Clone for MemorySnapshotRequest
impl Clone for MemorySnapshotRequest
Source§fn clone(&self) -> MemorySnapshotRequest
fn clone(&self) -> MemorySnapshotRequest
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 moreSource§impl Debug for MemorySnapshotRequest
impl Debug for MemorySnapshotRequest
Source§impl<'de> Deserialize<'de> for MemorySnapshotRequest
impl<'de> Deserialize<'de> for MemorySnapshotRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemorySnapshotRequest
Source§impl PartialEq for MemorySnapshotRequest
impl PartialEq for MemorySnapshotRequest
Source§impl Serialize for MemorySnapshotRequest
impl Serialize for MemorySnapshotRequest
impl StructuralPartialEq for MemorySnapshotRequest
Auto Trait Implementations§
impl Freeze for MemorySnapshotRequest
impl RefUnwindSafe for MemorySnapshotRequest
impl Send for MemorySnapshotRequest
impl Sync for MemorySnapshotRequest
impl Unpin for MemorySnapshotRequest
impl UnsafeUnpin for MemorySnapshotRequest
impl UnwindSafe for MemorySnapshotRequest
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