Struct veilid_tools::AsyncTagLockTable
source · pub struct AsyncTagLockTable<T>where
T: Hash + Eq + Clone + Debug,{ /* private fields */ }Implementations§
source§impl<T> AsyncTagLockTable<T>where
T: Hash + Eq + Clone + Debug,
impl<T> AsyncTagLockTable<T>where T: Hash + Eq + Clone + Debug,
pub fn new() -> Self
pub fn len(&self) -> usize
pub async fn lock_tag(&self, tag: T) -> AsyncTagLockGuard<T>
pub fn try_lock_tag(&self, tag: T) -> Option<AsyncTagLockGuard<T>>
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for AsyncTagLockTable<T>
impl<T> Send for AsyncTagLockTable<T>where T: Send,
impl<T> Sync for AsyncTagLockTable<T>where T: Send,
impl<T> Unpin for AsyncTagLockTable<T>
impl<T> !UnwindSafe for AsyncTagLockTable<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