pub struct ArcNotifier<T>(/* 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> Clone for ArcNotifier<T>
impl<T> Clone for ArcNotifier<T>
Source§impl<T: Debug> Debug for ArcNotifier<T>
impl<T: Debug> Debug for ArcNotifier<T>
Auto Trait Implementations§
impl<T> Freeze for ArcNotifier<T>
impl<T> RefUnwindSafe for ArcNotifier<T>
impl<T> Send for ArcNotifier<T>where
T: Send,
impl<T> Sync for ArcNotifier<T>where
T: Send,
impl<T> Unpin for ArcNotifier<T>
impl<T> UnwindSafe for ArcNotifier<T>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.