Struct parking_method::Blocking
source · [−]pub struct Blocking;
Expand description
Marker for blocking locks, waits until the lock becomes available.
Trait Implementations
sourceimpl<'a, V> MutexMethod<'a, V> for Blocking
impl<'a, V> MutexMethod<'a, V> for Blocking
sourcefn lock(&self, mutex: &'a Mutex<V>) -> Option<MutexGuard<'a, V>>
fn lock(&self, mutex: &'a Mutex<V>) -> Option<MutexGuard<'a, V>>
Obtain a lock on a mutex. Blocking locks are infallible and always return a ‘Some()’ variant.
sourceimpl ReadLockMethod for Blocking
impl ReadLockMethod for Blocking
sourcefn read<'a, V>(&self, rwlock: &'a RwLock<V>) -> Option<RwLockReadGuard<'a, V>>
fn read<'a, V>(&self, rwlock: &'a RwLock<V>) -> Option<RwLockReadGuard<'a, V>>
Obtain a read lock. Blocking locks are infallible and always return a ‘Some()’ variant.
sourceimpl<'a, V> ReentrantMutexMethod<'a, V> for Blocking
impl<'a, V> ReentrantMutexMethod<'a, V> for Blocking
sourcefn lock(
&self,
mutex: &'a ReentrantMutex<V>
) -> Option<ReentrantMutexGuard<'a, V>>
fn lock(
&self,
mutex: &'a ReentrantMutex<V>
) -> Option<ReentrantMutexGuard<'a, V>>
Obtain a lock on a reentrant mutex. Blocking locks are infallible and always return a ‘Some()’ variant. Read more
sourceimpl WriteLockMethod for Blocking
impl WriteLockMethod for Blocking
sourcefn write<'a, V>(&self, rwlock: &'a RwLock<V>) -> Option<RwLockWriteGuard<'a, V>>
fn write<'a, V>(&self, rwlock: &'a RwLock<V>) -> Option<RwLockWriteGuard<'a, V>>
Obtain a write lock. Blocking locks are infallible and always return a ‘Some()’ variant.
Auto Trait Implementations
impl RefUnwindSafe for Blocking
impl Send for Blocking
impl Sync for Blocking
impl Unpin for Blocking
impl UnwindSafe for Blocking
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more