pub struct Vigil<T: ?Sized> { /* private fields */ }
Expand description
Vigil is a smart pointer that implements DropWatch for any type.
Implementations§
Trait Implementations§
source§impl<T: ?Sized> DropWatch<T> for Vigil<T>
impl<T: ?Sized> DropWatch<T> for Vigil<T>
source§impl<T: Unit> Unit for Vigil<T>
impl<T: Unit> Unit for Vigil<T>
§type Data = <T as Unit>::Data
type Data = <T as Unit>::Data
This associated type owns a subtree (either a property or a node) of a parent inspect node.
May be nested. When dropped, the subtree is detached from the parent.
Default is required such that a detached state can be constructed. The base inspect node
and property types implement default.
source§fn inspect_create(&self, parent: &Node, name: impl AsRef<str>) -> Self::Data
fn inspect_create(&self, parent: &Node, name: impl AsRef<str>) -> Self::Data
Insert an inspect subtree at
parent[name]
with values from self
and return
the inspect data.source§fn inspect_update(&self, data: &mut Self::Data)
fn inspect_update(&self, data: &mut Self::Data)
Update the inspect subtree owned by the inspect data with values from self.