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>
Source§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.
Auto Trait Implementations§
impl<T> Freeze for Vigil<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Vigil<T>where
T: RefUnwindSafe + ?Sized,
impl<T> !Send for Vigil<T>
impl<T> !Sync for Vigil<T>
impl<T> Unpin for Vigil<T>where
T: ?Sized,
impl<T> UnwindSafe for Vigil<T>where
T: UnwindSafe + ?Sized,
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§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