pub struct ObservableReadGuard<'a, T: 'a, L: Lock = SyncLock> { /* private fields */ }
Expand description
A read guard for the inner value of an observable.
Note that as long as an ObservableReadGuard
is kept alive, the associated
Observable
is locked and can not be updated.
Trait Implementations§
Source§impl<T: Debug, L: Lock> Debug for ObservableReadGuard<'_, T, L>
impl<T: Debug, L: Lock> Debug for ObservableReadGuard<'_, T, L>
Auto Trait Implementations§
impl<'a, T, L> Freeze for ObservableReadGuard<'a, T, L>where
<L as Lock>::SharedReadGuard<'a, ObservableState<T>>: Freeze,
impl<'a, T, L> RefUnwindSafe for ObservableReadGuard<'a, T, L>where
<L as Lock>::SharedReadGuard<'a, ObservableState<T>>: RefUnwindSafe,
impl<'a, T, L> Send for ObservableReadGuard<'a, T, L>where
<L as Lock>::SharedReadGuard<'a, ObservableState<T>>: Send,
impl<'a, T, L> Sync for ObservableReadGuard<'a, T, L>where
<L as Lock>::SharedReadGuard<'a, ObservableState<T>>: Sync,
impl<'a, T, L> Unpin for ObservableReadGuard<'a, T, L>where
<L as Lock>::SharedReadGuard<'a, ObservableState<T>>: Unpin,
impl<'a, T, L> UnwindSafe for ObservableReadGuard<'a, T, L>where
<L as Lock>::SharedReadGuard<'a, ObservableState<T>>: 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