pub struct PartialNodeHierarchy { /* private fields */ }Expand description
A partial node hierarchy represents a node in an inspect tree without
the linked (lazy) nodes expanded.
Usually a client would prefer to use a DiagnosticsHierarchy to get the full
inspect tree.
Implementations§
Source§impl PartialNodeHierarchy
 
impl PartialNodeHierarchy
Sourcepub fn new(
    name: impl Into<String>,
    properties: Vec<Property>,
    children: Vec<PartialNodeHierarchy>,
) -> Self
 
pub fn new( name: impl Into<String>, properties: Vec<Property>, children: Vec<PartialNodeHierarchy>, ) -> Self
Creates an PartialNodeHierarchy with the given name, properties and children
Sourcepub fn is_complete(&self) -> bool
 
pub fn is_complete(&self) -> bool
Whether the partial hierarchy is complete or not. A complete node hierarchy has all the links loaded into it.
Trait Implementations§
Source§impl Clone for PartialNodeHierarchy
 
impl Clone for PartialNodeHierarchy
Source§fn clone(&self) -> PartialNodeHierarchy
 
fn clone(&self) -> PartialNodeHierarchy
Returns a duplicate of the value. Read more
1.0.0 · 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 PartialNodeHierarchy
 
impl Debug for PartialNodeHierarchy
Source§impl DiagnosticsHierarchyGetter<String> for PartialNodeHierarchy
 
impl DiagnosticsHierarchyGetter<String> for PartialNodeHierarchy
async fn get_diagnostics_hierarchy<'a>(
    &'a self,
) -> Cow<'_, DiagnosticsHierarchy>where
    String: 'a,
Source§impl From<PartialNodeHierarchy> for DiagnosticsHierarchy
Transforms the partial hierarchy into a DiagnosticsHierarchy. If the node hierarchy had
unexpanded links, those will appear as missing values.
 
impl From<PartialNodeHierarchy> for DiagnosticsHierarchy
Transforms the partial hierarchy into a DiagnosticsHierarchy. If the node hierarchy had
unexpanded links, those will appear as missing values.
Source§fn from(partial: PartialNodeHierarchy) -> DiagnosticsHierarchy
 
fn from(partial: PartialNodeHierarchy) -> DiagnosticsHierarchy
Converts to this type from the input type.
Source§impl PartialEq for PartialNodeHierarchy
 
impl PartialEq for PartialNodeHierarchy
Source§impl TryFrom<&Vmo> for PartialNodeHierarchy
Available on Fuchsia only. 
impl TryFrom<&Vmo> for PartialNodeHierarchy
Available on Fuchsia only.
Source§impl TryFrom<Snapshot> for PartialNodeHierarchy
 
impl TryFrom<Snapshot> for PartialNodeHierarchy
impl StructuralPartialEq for PartialNodeHierarchy
Auto Trait Implementations§
impl Freeze for PartialNodeHierarchy
impl RefUnwindSafe for PartialNodeHierarchy
impl Send for PartialNodeHierarchy
impl Sync for PartialNodeHierarchy
impl Unpin for PartialNodeHierarchy
impl UnwindSafe for PartialNodeHierarchy
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, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
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