pub struct SubscribableRwLock<T: Clone> { /* private fields */ }Expand description
A RwLock that can register subscribers to be notified upon state change.
Implementations§
Source§impl<T: Clone> SubscribableRwLock<T>
impl<T: Clone> SubscribableRwLock<T>
Trait Implementations§
Source§impl<T: Default + Clone> Default for SubscribableRwLock<T>
impl<T: Default + Clone> Default for SubscribableRwLock<T>
Source§fn default() -> SubscribableRwLock<T>
fn default() -> SubscribableRwLock<T>
Returns the “default value” for a type. Read more
Source§impl<T: Clone + Send + Sync> ReadView<T> for SubscribableRwLock<T>
impl<T: Clone + Send + Sync> ReadView<T> for SubscribableRwLock<T>
impl<T: Clone + Sync + Send + Debug> ThreadedReadView<T> for SubscribableRwLock<T>
Auto Trait Implementations§
impl<T> !Freeze for SubscribableRwLock<T>
impl<T> !RefUnwindSafe for SubscribableRwLock<T>
impl<T> Send for SubscribableRwLock<T>where
T: Send,
impl<T> Sync for SubscribableRwLock<T>
impl<T> Unpin for SubscribableRwLock<T>where
T: Unpin,
impl<T> UnwindSafe for SubscribableRwLock<T>where
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