pub struct WriteGuard<S, G>where
S: Notify,{ /* private fields */ }Expand description
A guard that provides mutable access to a signal’s value, triggering some reactive change when it is dropped.
Implementations§
Source§impl<S, G> WriteGuard<S, G>where
S: Notify,
impl<S, G> WriteGuard<S, G>where
S: Notify,
Sourcepub fn new(triggerable: S, guard: G) -> WriteGuard<S, G>
pub fn new(triggerable: S, guard: G) -> WriteGuard<S, G>
Creates a new guard from the inner mutable guard type, and the signal that should be triggered on drop.
Trait Implementations§
Source§impl<S, G> Debug for WriteGuard<S, G>
impl<S, G> Debug for WriteGuard<S, G>
Source§impl<S, G> Deref for WriteGuard<S, G>
impl<S, G> Deref for WriteGuard<S, G>
Source§impl<S, G> DerefMut for WriteGuard<S, G>
impl<S, G> DerefMut for WriteGuard<S, G>
Source§impl<S, T> Drop for WriteGuard<S, T>where
S: Notify,
impl<S, T> Drop for WriteGuard<S, T>where
S: Notify,
Source§impl<S, G> UntrackableGuard for WriteGuard<S, G>
impl<S, G> UntrackableGuard for WriteGuard<S, G>
Auto Trait Implementations§
impl<S, G> Freeze for WriteGuard<S, G>
impl<S, G> RefUnwindSafe for WriteGuard<S, G>where
S: RefUnwindSafe,
G: RefUnwindSafe,
impl<S, G> Send for WriteGuard<S, G>
impl<S, G> Sync for WriteGuard<S, G>
impl<S, G> Unpin for WriteGuard<S, G>
impl<S, G> UnwindSafe for WriteGuard<S, G>where
S: UnwindSafe,
G: UnwindSafe,
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> 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 moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.