Trait lockable::LockableSized
source · pub trait LockableSized<'t, T: 't + Sized>: Lockable<'t, T> {
// Required method
fn into_inner(self) -> T;
}Expand description
An extension of the Lockable trait that adds the into_inner() method
only for types T that are Sized.
Required Methods§
sourcefn into_inner(self) -> T
fn into_inner(self) -> T
Consumes the lock, returning the underlying data.
Implementations on Foreign Types§
source§impl<'t, T> LockableSized<'t, T> for Mutex<T>where
T: 't + Sized,
impl<'t, T> LockableSized<'t, T> for Mutex<T>where T: 't + Sized,
Implement LockableSized for [spin::Mutex].
fn into_inner(self) -> T
source§impl<'t, T> LockableSized<'t, T> for IrqSafeRwLock<T>where
T: 't + Sized,
impl<'t, T> LockableSized<'t, T> for IrqSafeRwLock<T>where T: 't + Sized,
Implement LockableSized for [sync_irq::IrqSafeRwLock].
fn into_inner(self) -> T
source§impl<'t, T> LockableSized<'t, T> for IrqSafeMutex<T>where
T: 't + Sized,
impl<'t, T> LockableSized<'t, T> for IrqSafeMutex<T>where T: 't + Sized,
Implement LockableSized for [sync_irq::IrqSafeMutex].
fn into_inner(self) -> T
source§impl<'t, T> LockableSized<'t, T> for RwLock<T>where
T: 't + Sized,
impl<'t, T> LockableSized<'t, T> for RwLock<T>where T: 't + Sized,
Implement LockableSized for [spin::RwLock].