Struct ReentrantLockGuard
struct ReentrantLockGuard<'a, T: ?Sized + 'a> { ... }
An RAII implementation of a "scoped lock" of a re-entrant lock. When this structure is dropped (falls out of scope), the lock will be unlocked.
The data protected by the mutex can be accessed through this guard via its
Deref implementation.
This structure is created by the lock method on
ReentrantLock.
Mutability
Unlike MutexGuard, ReentrantLockGuard does not
implement DerefMut, because implementation of
the trait would violate Rust’s reference aliasing rules. Use interior
mutability (usually RefCell) in order to mutate
the guarded data.
Implementations
impl<'a, T> Freeze for ReentrantLockGuard<'a, T>
impl<'a, T> RefUnwindSafe for ReentrantLockGuard<'a, T>
impl<'a, T> Unpin for ReentrantLockGuard<'a, T>
impl<'a, T> UnsafeUnpin for ReentrantLockGuard<'a, T>
impl<'a, T> UnwindSafe for ReentrantLockGuard<'a, T>
impl<P, T> Receiver for ReentrantLockGuard<'a, T>
impl<T> Any for ReentrantLockGuard<'a, T>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for ReentrantLockGuard<'a, T>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for ReentrantLockGuard<'a, T>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for ReentrantLockGuard<'a, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for ReentrantLockGuard<'a, T>
fn to_string(self: &Self) -> String
impl<T, U> Into for ReentrantLockGuard<'a, T>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for ReentrantLockGuard<'a, T>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for ReentrantLockGuard<'a, T>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T: ?Sized + Sync> Sync for ReentrantLockGuard<'_, T>
impl<T: ?Sized> Deref for ReentrantLockGuard<'_, T>
fn deref(self: &Self) -> &T
impl<T: ?Sized> Drop for ReentrantLockGuard<'_, T>
fn drop(self: &mut Self)
impl<T: ?Sized> Send for ReentrantLockGuard<'_, T>
impl<T: fmt::Debug + ?Sized> Debug for ReentrantLockGuard<'_, T>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<T: fmt::Display + ?Sized> Display for ReentrantLockGuard<'_, T>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result