Skip to main content

Pool

Trait Pool 

Source
pub trait Pool<I, T> {
    // Required method
    fn resource(&mut self, info: I) -> Result<Lease<T>, DriverError>;
}
Expand description

Allows requesting resources using driver information structures.

Required Methods§

Source

fn resource(&mut self, info: I) -> Result<Lease<T>, DriverError>

Request a resource.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Pool<AccelerationStructureInfo, AccelerationStructure> for FifoPool

Source§

impl Pool<AccelerationStructureInfo, AccelerationStructure> for HashPool

Source§

impl Pool<AccelerationStructureInfo, AccelerationStructure> for LazyPool

Source§

impl Pool<BufferInfo, Buffer> for FifoPool

Source§

impl Pool<BufferInfo, Buffer> for HashPool

Source§

impl Pool<BufferInfo, Buffer> for LazyPool

Source§

impl Pool<CommandBufferInfo, CommandBuffer> for FifoPool

Source§

impl Pool<CommandBufferInfo, CommandBuffer> for HashPool

Source§

impl Pool<CommandBufferInfo, CommandBuffer> for LazyPool

Source§

impl Pool<ImageInfo, Image> for FifoPool

Source§

impl Pool<ImageInfo, Image> for HashPool

Source§

impl Pool<ImageInfo, Image> for LazyPool

Source§

impl<T> Pool<AccelerationStructureInfo, AccelerationStructure> for GarbageCollector<T>

Source§

impl<T> Pool<AccelerationStructureInfoBuilder, AccelerationStructure> for T

Source§

impl<T> Pool<BufferInfo, Buffer> for GarbageCollector<T>
where T: Pool<BufferInfo, Buffer>,

Source§

impl<T> Pool<BufferInfoBuilder, Buffer> for T
where T: Pool<BufferInfo, Buffer>,

Source§

impl<T> Pool<CommandBufferInfo, CommandBuffer> for GarbageCollector<T>

Source§

impl<T> Pool<ImageInfo, Image> for GarbageCollector<T>
where T: Pool<ImageInfo, Image>,

Source§

impl<T> Pool<ImageInfoBuilder, Image> for T
where T: Pool<ImageInfo, Image>,