pub struct SnapshotTree { /* private fields */ }
Expand description
Contains the snapshot of the hierarchy and snapshots of all the lazy nodes in the hierarchy.
Implementations§
Source§impl SnapshotTree
impl SnapshotTree
Sourcepub async fn try_from(tree: &TreeProxy) -> Result<SnapshotTree, ReaderError>
pub async fn try_from(tree: &TreeProxy) -> Result<SnapshotTree, ReaderError>
Loads a snapshot tree from the given inspect tree.
pub async fn try_from_with_timeout<T: ReadableTree + Send + Sync>( tree: &T, lazy_child_timeout: Duration, ) -> Result<SnapshotTree, ReaderError>
Trait Implementations§
Source§impl Debug for SnapshotTree
impl Debug for SnapshotTree
Source§impl TryInto<DiagnosticsHierarchy> for SnapshotTree
impl TryInto<DiagnosticsHierarchy> for SnapshotTree
Source§type Error = ReaderError
type Error = ReaderError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for SnapshotTree
impl !RefUnwindSafe for SnapshotTree
impl Send for SnapshotTree
impl Sync for SnapshotTree
impl Unpin for SnapshotTree
impl !UnwindSafe for SnapshotTree
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