pub struct SharedPool<T, Q: HasPoolIdx<N>, const N: usize, const M: usize> { /* private fields */ }Implementations§
pub const fn new() -> Self
pub fn split_prod(&self) -> Result<Producer<'_, T, Q, N, M>, SharedPoolError>
pub fn split_cons(&self) -> Result<Consumer<'_, T, Q, N, M>, SharedPoolError>
pub fn split( &self, ) -> Result<(Producer<'_, T, Q, N, M>, Consumer<'_, T, Q, N, M>), SharedPoolError>
pub fn num_free(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more