pub struct ArbitraryLock<K: Clone + Eq + Hash, L: Default> { /* private fields */ }Expand description
This can be cheaply cloned.
Provide your desired lock implementation for the L generic parameter. Options include tokio::sync::RwLock, parking_lot::Mutex, and std::sync::Exclusive.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K, L> Freeze for ArbitraryLock<K, L>
impl<K, L> !RefUnwindSafe for ArbitraryLock<K, L>
impl<K, L> Send for ArbitraryLock<K, L>
impl<K, L> Sync for ArbitraryLock<K, L>
impl<K, L> Unpin for ArbitraryLock<K, L>
impl<K, L> !UnwindSafe for ArbitraryLock<K, L>
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