Struct lendable_mutex::LendableMutexGuard[][src]

pub struct LendableMutexGuard<'a, R: RawMutex, G: GetThreadId, T: ?Sized> { /* fields omitted */ }

Implementations

impl<'a, R: RawMutex, G: GetThreadId, T: ?Sized> LendableMutexGuard<'a, R, G, T>[src]

pub fn mutex(&self) -> &'a LendableMutex<R, G, T>[src]

pub fn lend(&mut self, f: impl FnOnce())[src]

Trait Implementations

impl<'a, R: RawMutex, G: GetThreadId, T: ?Sized + Debug> Debug for LendableMutexGuard<'a, R, G, T>[src]

impl<'a, R: RawMutex, G: GetThreadId, T: ?Sized> Deref for LendableMutexGuard<'a, R, G, T>[src]

type Target = T

The resulting type after dereferencing.

impl<'a, R: RawMutex, G: GetThreadId, T: ?Sized> DerefMut for LendableMutexGuard<'a, R, G, T>[src]

impl<'a, R: RawMutex, G: GetThreadId, T: ?Sized + Display> Display for LendableMutexGuard<'a, R, G, T>[src]

impl<'a, R: RawMutex, G: GetThreadId, T: ?Sized> Drop for LendableMutexGuard<'a, R, G, T>[src]

Auto Trait Implementations

impl<'a, R, G, T> !RefUnwindSafe for LendableMutexGuard<'a, R, G, T>

impl<'a, R, G, T> !Send for LendableMutexGuard<'a, R, G, T>

impl<'a, R, G, T> !Sync for LendableMutexGuard<'a, R, G, T>

impl<'a, R, G, T: ?Sized> Unpin for LendableMutexGuard<'a, R, G, T> where
    <R as RawMutex>::GuardMarker: Unpin

impl<'a, R, G, T> !UnwindSafe for LendableMutexGuard<'a, R, G, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.