pub trait NativeCapabilitiesProvider: Send + Sync {
// Required methods
fn native_capabilities(&self) -> ProviderNativeCapabilities;
fn submit_media<'life0, 'async_trait>(
&'life0 self,
request: NativeMediaRequest,
) -> Pin<Box<dyn Future<Output = Result<NativeMediaResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn poll_media_job<'life0, 'life1, 'async_trait>(
&'life0 self,
job: &'life1 NativeMediaJob,
) -> Pin<Box<dyn Future<Output = Result<NativeMediaResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Expand description
Provider support for direct media/model-specific endpoints.
Required Methods§
fn native_capabilities(&self) -> ProviderNativeCapabilities
fn submit_media<'life0, 'async_trait>(
&'life0 self,
request: NativeMediaRequest,
) -> Pin<Box<dyn Future<Output = Result<NativeMediaResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn poll_media_job<'life0, 'life1, 'async_trait>(
&'life0 self,
job: &'life1 NativeMediaJob,
) -> Pin<Box<dyn Future<Output = Result<NativeMediaResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".