pub struct MemoryNamespaceSnapshot { /* private fields */ }Expand description
Complete, deterministically ordered current view selected by one request.
Implementations§
Source§impl MemoryNamespaceSnapshot
impl MemoryNamespaceSnapshot
Sourcepub fn try_new(
request: MemorySnapshotRequest,
nodes: Vec<MemoryNode>,
) -> Result<Self, MemoryRepositoryError>
pub fn try_new( request: MemorySnapshotRequest, nodes: Vec<MemoryNode>, ) -> Result<Self, MemoryRepositoryError>
Construct and hash a complete caller-provided view.
Custom repositories should use this constructor rather than assembling response fields independently.
Sourcepub fn verify(
&self,
request: &MemorySnapshotRequest,
) -> Result<(), MemoryRepositoryError>
pub fn verify( &self, request: &MemorySnapshotRequest, ) -> Result<(), MemoryRepositoryError>
Recompute and verify every response field against the original request.
pub fn profile(&self) -> &str
pub fn namespace(&self) -> &MemoryNamespace
pub fn statuses(&self) -> &BTreeSet<MemoryStatus>
pub fn nodes(&self) -> &[MemoryNode]
pub fn digest(&self) -> &str
pub fn byte_count(&self) -> usize
pub fn into_nodes(self) -> Vec<MemoryNode>
Trait Implementations§
Source§impl Clone for MemoryNamespaceSnapshot
impl Clone for MemoryNamespaceSnapshot
Source§fn clone(&self) -> MemoryNamespaceSnapshot
fn clone(&self) -> MemoryNamespaceSnapshot
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 MemoryNamespaceSnapshot
impl Debug for MemoryNamespaceSnapshot
Source§impl<'de> Deserialize<'de> for MemoryNamespaceSnapshot
impl<'de> Deserialize<'de> for MemoryNamespaceSnapshot
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
Source§impl PartialEq for MemoryNamespaceSnapshot
impl PartialEq for MemoryNamespaceSnapshot
Source§impl Serialize for MemoryNamespaceSnapshot
impl Serialize for MemoryNamespaceSnapshot
impl StructuralPartialEq for MemoryNamespaceSnapshot
Auto Trait Implementations§
impl Freeze for MemoryNamespaceSnapshot
impl RefUnwindSafe for MemoryNamespaceSnapshot
impl Send for MemoryNamespaceSnapshot
impl Sync for MemoryNamespaceSnapshot
impl Unpin for MemoryNamespaceSnapshot
impl UnsafeUnpin for MemoryNamespaceSnapshot
impl UnwindSafe for MemoryNamespaceSnapshot
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