Struct lendable_mutex::LendableMutex[][src]

pub struct LendableMutex<R, G, T: ?Sized> { /* fields omitted */ }

Implementations

impl<R: RawMutex, G: GetThreadId, T: ?Sized> LendableMutex<R, G, T>[src]

pub fn new(v: T) -> Self where
    T: Sized
[src]

pub fn into_inner(self) -> T where
    T: Sized
[src]

pub unsafe fn force_unlock(&self)[src]

pub unsafe fn raw(&self) -> &RawReentrantMutex<R, G>[src]

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

pub fn try_lock<'a>(&'a self) -> Option<LendableMutexGuard<'a, R, G, T>>[src]

Trait Implementations

impl<R, G, T: ?Sized> Send for LendableMutex<R, G, T>[src]

impl<R, G, T: ?Sized> Sync for LendableMutex<R, G, T>[src]

Auto Trait Implementations

impl<R, G, T> !RefUnwindSafe for LendableMutex<R, G, T>

impl<R, G, T: ?Sized> Unpin for LendableMutex<R, G, T> where
    G: Unpin,
    R: Unpin,
    T: Unpin

impl<R, G, T: ?Sized> UnwindSafe for LendableMutex<R, G, T> where
    G: UnwindSafe,
    R: UnwindSafe,
    T: UnwindSafe

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, 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.