Struct lendable_mutex::LendableMutex [−][src]
Implementations
impl<R: RawMutex, G: GetThreadId, T: ?Sized> LendableMutex<R, G, T>
[src]
pub fn new(v: T) -> Self where
T: Sized,
[src]
T: Sized,
pub fn into_inner(self) -> T where
T: Sized,
[src]
T: Sized,
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,
G: Unpin,
R: Unpin,
T: Unpin,
impl<R, G, T: ?Sized> UnwindSafe for LendableMutex<R, G, T> where
G: UnwindSafe,
R: UnwindSafe,
T: UnwindSafe,
G: UnwindSafe,
R: UnwindSafe,
T: UnwindSafe,
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,
pub 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.
pub 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>,