pub struct InspectableGuard<'a, V, W>where
W: Watch<V>,{ /* private fields */ }
Expand description
Calls self.watcher.watch(self.value) when dropped.
Trait Implementations§
Source§impl<V, W> Deref for InspectableGuard<'_, V, W>where
W: Watch<V>,
impl<V, W> Deref for InspectableGuard<'_, V, W>where
W: Watch<V>,
Source§impl<V, W> DerefMut for InspectableGuard<'_, V, W>where
W: Watch<V>,
impl<V, W> DerefMut for InspectableGuard<'_, V, W>where
W: Watch<V>,
Auto Trait Implementations§
impl<'a, V, W> Freeze for InspectableGuard<'a, V, W>
impl<'a, V, W> RefUnwindSafe for InspectableGuard<'a, V, W>where
V: RefUnwindSafe,
W: RefUnwindSafe,
impl<'a, V, W> Send for InspectableGuard<'a, V, W>
impl<'a, V, W> Sync for InspectableGuard<'a, V, W>
impl<'a, V, W> Unpin for InspectableGuard<'a, V, W>
impl<'a, V, W> !UnwindSafe for InspectableGuard<'a, V, W>
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