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§

source

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,

Implement LockableSized for [spin::Mutex].

source§

fn into_inner(self) -> T

source§

impl<'t, T> LockableSized<'t, T> for IrqSafeRwLock<T>where T: 't + Sized,

Implement LockableSized for [sync_irq::IrqSafeRwLock].

source§

fn into_inner(self) -> T

source§

impl<'t, T> LockableSized<'t, T> for IrqSafeMutex<T>where T: 't + Sized,

Implement LockableSized for [sync_irq::IrqSafeMutex].

source§

fn into_inner(self) -> T

source§

impl<'t, T> LockableSized<'t, T> for RwLock<T>where T: 't + Sized,

Implement LockableSized for [spin::RwLock].

source§

fn into_inner(self) -> T

Implementors§