pub trait PreviewLifecycleProvider:
Send
+ Sync
+ Debug {
// Required methods
fn create_preview<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
request_id: &'life2 str,
port: u16,
ttl_ms: u64,
) -> Pin<Box<dyn Future<Output = Result<StoredPreview>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn stop_preview<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_ref: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
fn create_preview<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
request_id: &'life2 str,
port: u16,
ttl_ms: u64,
) -> Pin<Box<dyn Future<Output = Result<StoredPreview>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn stop_preview<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_ref: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + 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".