Struct veilid_tools::AsyncTagLockTable
source · pub struct AsyncTagLockTable<T>{ /* private fields */ }
Implementations§
source§impl<T> AsyncTagLockTable<T>
impl<T> AsyncTagLockTable<T>
pub fn new() -> Self
pub fn is_empty(&self) -> bool
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§
source§impl<T> Clone for AsyncTagLockTable<T>
impl<T> Clone for AsyncTagLockTable<T>
source§fn clone(&self) -> AsyncTagLockTable<T>
fn clone(&self) -> AsyncTagLockTable<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> Debug for AsyncTagLockTable<T>
impl<T> Debug for AsyncTagLockTable<T>
Auto Trait Implementations§
impl<T> Freeze for AsyncTagLockTable<T>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more