Trait heapless::pool::object::ObjectPool
source · pub trait ObjectPool: Sized {
type Data: 'static;
// Provided methods
fn request() -> Option<Object<Self>> { ... }
fn manage(block: &'static mut ObjectBlock<Self::Data>) { ... }
}
Expand description
A singleton that manages pool::object::Object
s
Required Associated Types§
Provided Methods§
sourcefn manage(block: &'static mut ObjectBlock<Self::Data>)
fn manage(block: &'static mut ObjectBlock<Self::Data>)
Adds a statically allocate object to the pool
Object Safety§
This trait is not object safe.