pub trait MemoryManagerFactory: Send + Sync {
// Required methods
fn create_memory_manager<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
device: &'life1 Device,
config: &'life2 MemoryManagerConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn DeviceMemoryManager>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn create_advanced_memory_manager<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
device: &'life1 Device,
config: &'life2 MemoryManagerConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AdvancedMemoryManager>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn create_stream_manager<'life0, 'life1, 'async_trait>(
&'life0 self,
device: &'life1 Device,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn StreamManager>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Memory manager factory
Required Methods§
Sourcefn create_memory_manager<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
device: &'life1 Device,
config: &'life2 MemoryManagerConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn DeviceMemoryManager>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_memory_manager<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
device: &'life1 Device,
config: &'life2 MemoryManagerConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn DeviceMemoryManager>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create memory manager for device
Sourcefn create_advanced_memory_manager<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
device: &'life1 Device,
config: &'life2 MemoryManagerConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AdvancedMemoryManager>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_advanced_memory_manager<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
device: &'life1 Device,
config: &'life2 MemoryManagerConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AdvancedMemoryManager>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create advanced memory manager
Sourcefn create_stream_manager<'life0, 'life1, 'async_trait>(
&'life0 self,
device: &'life1 Device,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn StreamManager>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_stream_manager<'life0, 'life1, 'async_trait>(
&'life0 self,
device: &'life1 Device,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn StreamManager>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create stream manager