pub enum SignalReadGuard<T, S>where
T: 'static,
S: Storage<T>,{
Read(ReadGuard<T, Plain<T>>),
Memo(ReadGuard<T, Mapped<Plain<Option<<S as Storage<T>>::Wrapped>>, T>>),
Owned(T),
}Expand description
The content of a Signal wrapper read guard, variable depending on the signal type.
Variants§
Read(ReadGuard<T, Plain<T>>)
A read signal guard.
Memo(ReadGuard<T, Mapped<Plain<Option<<S as Storage<T>>::Wrapped>>, T>>)
A memo guard.
Owned(T)
A fake guard for derived signals, the content had to actually be cloned, so it’s not a guard but we pretend it is.
Trait Implementations§
Source§impl<T, S> Borrow<T> for SignalReadGuard<T, S>where
S: Storage<T>,
impl<T, S> Borrow<T> for SignalReadGuard<T, S>where
S: Storage<T>,
Source§impl<T, S> Clone for SignalReadGuard<T, S>
impl<T, S> Clone for SignalReadGuard<T, S>
Source§fn clone(&self) -> SignalReadGuard<T, S>
fn clone(&self) -> SignalReadGuard<T, S>
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<T, S> Debug for SignalReadGuard<T, S>
impl<T, S> Debug for SignalReadGuard<T, S>
Source§impl<T, S> Deref for SignalReadGuard<T, S>where
S: Storage<T>,
impl<T, S> Deref for SignalReadGuard<T, S>where
S: Storage<T>,
Source§impl<T, S> Display for SignalReadGuard<T, S>
impl<T, S> Display for SignalReadGuard<T, S>
Source§impl<T, S> PartialEq<T> for SignalReadGuard<T, S>
impl<T, S> PartialEq<T> for SignalReadGuard<T, S>
Auto Trait Implementations§
impl<T, S> Freeze for SignalReadGuard<T, S>where
T: Freeze,
impl<T, S> RefUnwindSafe for SignalReadGuard<T, S>
impl<T, S> !Send for SignalReadGuard<T, S>
impl<T, S> Sync for SignalReadGuard<T, S>
impl<T, S> Unpin for SignalReadGuard<T, S>where
T: Unpin,
impl<T, S> UnwindSafe for SignalReadGuard<T, S>
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.