pub struct ArcNotifier<T, R>(/* private fields */);Expand description
An implementation of Notifier that stores the unwrapped data in a
Clone type.
Useful for tests where completion assertions are possible and useful.
Implementations§
Trait Implementations§
Source§impl<T, R> Clone for ArcNotifier<T, R>
impl<T, R> Clone for ArcNotifier<T, R>
Source§impl<T, R> Debug for ArcNotifier<T, R>
impl<T, R> Debug for ArcNotifier<T, R>
Auto Trait Implementations§
impl<T, R> !RefUnwindSafe for ArcNotifier<T, R>
impl<T, R> !UnwindSafe for ArcNotifier<T, R>
impl<T, R> Freeze for ArcNotifier<T, R>
impl<T, R> Send for ArcNotifier<T, R>
impl<T, R> Sync for ArcNotifier<T, R>
impl<T, R> Unpin for ArcNotifier<T, R>
impl<T, R> UnsafeUnpin for ArcNotifier<T, R>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<B, A> LockBefore<B> for Awhere
B: LockAfter<A>,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
Source§type Data = <L as UnlockedAccessMarkerFor<T>>::Data
type Data = <L as UnlockedAccessMarkerFor<T>>::Data
The type of state being accessed.
Source§type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data
where
T: 'l
type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data where T: 'l
A guard providing read access to the data.
Source§fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
How to access the state.