pub struct FramePool<F: SharedFrameInner = RwLock<Frame<'static>>> { /* private fields */ }Implementations§
Source§impl<F: SharedFrameInner> FramePool<F>
impl<F: SharedFrameInner> FramePool<F>
pub fn new() -> Arc<Self>
pub fn new_with_creator( desc: F::Descriptor, creator: Box<GenericFrameCreator<F::Descriptor>>, ) -> Arc<Self>
pub fn available(&self) -> usize
pub fn configure( &self, desc: Option<F::Descriptor>, creator: Option<Box<GenericFrameCreator<F::Descriptor>>>, )
pub fn recycle_frame(&self, frame: SharedFrame<F>)
Source§impl<D: FrameDescriptorSpec> FramePool<RwLock<Frame<'static, D>>>
impl<D: FrameDescriptorSpec> FramePool<RwLock<Frame<'static, D>>>
pub fn get_frame( self: &Arc<Self>, ) -> Result<SharedFrame<RwLock<Frame<'static, D>>>>
pub fn get_frame_with_descriptor( self: &Arc<Self>, desc: D, ) -> Result<SharedFrame<RwLock<Frame<'static, D>>>>
Source§impl<D: FrameDescriptorSpec> FramePool<Frame<'static, D>>
impl<D: FrameDescriptorSpec> FramePool<Frame<'static, D>>
pub fn get_frame(self: &Arc<Self>) -> Result<SharedFrame<Frame<'static, D>>>
pub fn get_frame_with_descriptor( self: &Arc<Self>, desc: D, ) -> Result<SharedFrame<Frame<'static, D>>>
Auto Trait Implementations§
impl<F = RwLock<Frame<'static>>> !Freeze for FramePool<F>
impl<F> RefUnwindSafe for FramePool<F>
impl<F> Send for FramePool<F>
impl<F> Sync for FramePool<F>
impl<F> Unpin for FramePool<F>
impl<F> UnwindSafe for FramePool<F>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more