[−][src]Struct tokio_lk::Guard
the Guard
functions like MutexGuard
in the standard library.
hold it, and then you hold the mutex.
drop it, and you release the lock.
Methods
impl<T> Guard<T> where
Guard<T>: Destruct<T>,
[src]
Guard<T>: Destruct<T>,
pub fn new(
target: usize,
value: Arc<(AtomicUsize, AtomicUsize, AtomicSerialWaker)>,
map: KeyPool<T>
) -> Self
[src]
target: usize,
value: Arc<(AtomicUsize, AtomicUsize, AtomicSerialWaker)>,
map: KeyPool<T>
) -> Self
Trait Implementations
impl<T: Debug> Debug for Guard<T> where
Guard<T>: Destruct<T>,
[src]
Guard<T>: Destruct<T>,
impl Destruct<Arc<DashMap<usize, Arc<(AtomicUsize, AtomicUsize, AtomicSerialWaker)>, RandomState>>> for Guard<DashMapType>
[src]
impl Destruct<Arc<Mutex<HashMap<usize, Arc<(AtomicUsize, AtomicUsize, AtomicSerialWaker)>, RandomState>>>> for Guard<MapType>
[src]
impl<T> Destruct<T> for Guard<T>
[src]
impl<T> Drop for Guard<T> where
Guard<T>: Destruct<T>,
[src]
Guard<T>: Destruct<T>,
impl<T> Send for Guard<T> where
Guard<T>: Destruct<T>,
[src]
Guard<T>: Destruct<T>,
impl<T> Sync for Guard<T> where
Guard<T>: Destruct<T>,
[src]
Guard<T>: Destruct<T>,
Auto Trait Implementations
impl<T> !RefUnwindSafe for Guard<T>
impl<T> Unpin for Guard<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for Guard<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,