pub struct SharedFramePool<M: RawMutex + 'static, const FRAME: usize, const CAPACITY: usize, const WAITERS: usize> { /* private fields */ }Implementations§
pub const fn new() -> Self
pub async fn lease( &'static self, ) -> Result<FrameLease<M, FRAME, CAPACITY, WAITERS>, FramePoolError>
pub fn try_lease( &'static self, ) -> Result<Option<FrameLease<M, FRAME, CAPACITY, WAITERS>>, FramePoolError>
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