pub struct InstancePoolDesc<'a> {
pub label: Option<&'a str>,
pub capacity: u32,
pub frames_in_flight: usize,
}Expand description
How large an InstancePool is, and what to call it.
Fields§
§label: Option<&'a str>Debug name; each frame’s buffer is named after it.
capacity: u32Instances the pool can hold. Fixed — see the module docs.
frames_in_flight: usizeHow many buffers to keep, one per frame in flight. Must be at least one.
Trait Implementations§
Source§impl<'a> Clone for InstancePoolDesc<'a>
impl<'a> Clone for InstancePoolDesc<'a>
impl<'a> Copy for InstancePoolDesc<'a>
Source§impl<'a> Debug for InstancePoolDesc<'a>
impl<'a> Debug for InstancePoolDesc<'a>
impl<'a> Eq for InstancePoolDesc<'a>
Source§impl<'a> PartialEq for InstancePoolDesc<'a>
impl<'a> PartialEq for InstancePoolDesc<'a>
impl<'a> StructuralPartialEq for InstancePoolDesc<'a>
Auto Trait Implementations§
impl<'a> Forget for InstancePoolDesc<'a>
impl<'a> Freeze for InstancePoolDesc<'a>
impl<'a> RefUnwindSafe for InstancePoolDesc<'a>
impl<'a> Send for InstancePoolDesc<'a>
impl<'a> Sync for InstancePoolDesc<'a>
impl<'a> Unpin for InstancePoolDesc<'a>
impl<'a> UnsafeUnpin for InstancePoolDesc<'a>
impl<'a> UnwindSafe for InstancePoolDesc<'a>
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