pub struct Consumer<'a, T, Q: HasPoolIdx<N>, const N: usize, const M: usize> {
pub alloc_cons: Consumer<'a, Q, M>,
pub return_prod: Producer<'a, Q, M>,
/* private fields */
}Fields§
§alloc_cons: Consumer<'a, Q, M>§return_prod: Producer<'a, Q, M>Implementations§
Source§impl<'a, T, Q: HasPoolIdx<N>, const N: usize, const M: usize> Consumer<'a, T, Q, N, M>
impl<'a, T, Q: HasPoolIdx<N>, const N: usize, const M: usize> Consumer<'a, T, Q, N, M>
pub fn peek_with_payload(&self) -> (Option<&Q>, Option<&SharedSingleton<T>>)
pub fn peek(&self) -> Option<&Q>
pub fn read_pool_item(&self, pidx: PoolIndex<N>) -> Option<&SharedSingleton<T>>
pub fn pop(&mut self) -> Result<(), SharedPoolError>
pub fn return_payload( &mut self, pidx: PoolIndex<N>, ) -> Result<(), SharedPoolError>
Auto Trait Implementations§
impl<'a, T, Q, const N: usize, const M: usize> Freeze for Consumer<'a, T, Q, N, M>
impl<'a, T, Q, const N: usize, const M: usize> !RefUnwindSafe for Consumer<'a, T, Q, N, M>
impl<'a, T, Q, const N: usize, const M: usize> Send for Consumer<'a, T, Q, N, M>
impl<'a, T, Q, const N: usize, const M: usize> Sync for Consumer<'a, T, Q, N, M>
impl<'a, T, Q, const N: usize, const M: usize> Unpin for Consumer<'a, T, Q, N, M>
impl<'a, T, Q, const N: usize, const M: usize> !UnwindSafe for Consumer<'a, T, Q, N, M>
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