pub trait WorkspaceProviderAdapter:
Send
+ Sync
+ Debug {
// Required methods
fn provision<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
workspace_id: &'life2 str,
config: &'life3 WorkspaceConfig,
idempotency_key: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<ProvisionedWorkspace>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
fn reconnect<'life0, 'life1, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn suspend<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
idempotency_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn resume<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
idempotency_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn inspect<'life0, 'life1, 'async_trait>(
&'life0 self,
workspace: &'life1 WorkspaceRecord,
) -> Pin<Box<dyn Future<Output = Result<WorkspaceResourceUsage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
idempotency_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn cancel_command<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
command_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Required Methods§
fn provision<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
workspace_id: &'life2 str,
config: &'life3 WorkspaceConfig,
idempotency_key: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<ProvisionedWorkspace>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn reconnect<'life0, 'life1, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn suspend<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
idempotency_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resume<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
idempotency_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn inspect<'life0, 'life1, 'async_trait>(
&'life0 self,
workspace: &'life1 WorkspaceRecord,
) -> Pin<Box<dyn Future<Output = Result<WorkspaceResourceUsage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
idempotency_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn cancel_command<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
command_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".