Skip to main content

ComputerProvider

Trait ComputerProvider 

Source
pub trait ComputerProvider:
    Send
    + Sync
    + Debug {
Show 18 methods // Required methods fn kind(&self) -> &str; fn capabilities(&self) -> ProviderCapabilities; fn create_computer<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, scope: &'life1 ResourceScope, request: &'life2 ProviderComputerRequest, idempotency_key: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<ProviderResourceRef>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn delete_computer<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, external_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; // Provided methods fn validate_create(&self, _request: &ProviderComputerRequest) -> Result<()> { ... } fn create_space_directory<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, request: &'life3 ProviderSpaceRequest, idempotency_key: &'life4 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait { ... } fn delete_space_directory<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, idempotency_key: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait { ... } fn read_file<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, path: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<ProviderFileContent>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait { ... } fn write_file<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, path: &'life3 str, content: &'life4 [u8], expected_provider_revision: Option<&'life5 str>, idempotency_key: &'life6 str, ) -> Pin<Box<dyn Future<Output = Result<ProviderWriteResult>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait, 'life6: 'async_trait { ... } fn delete_file<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, path: &'life3 str, idempotency_key: &'life4 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait { ... } fn list_files<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, path: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<ProviderFileEntry>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait { ... } fn create_change_set<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, source_space_directory: &'life2 str, target_space_directory: &'life3 str, idempotency_key: &'life4 str, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait { ... } fn apply_change_set<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, source_space_directory: &'life2 str, target_space_directory: &'life3 str, provider_change_ref: &'life4 str, idempotency_key: &'life5 str, ) -> Pin<Box<dyn Future<Output = Result<ProviderWriteResult>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait { ... } fn exec_command<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, command: &'life3 CommandSpec, ) -> Pin<Box<dyn Future<Output = Result<ProviderCommandOutput>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait { ... } fn exec_managed_command<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, command_id: &'life3 str, command: &'life4 CommandSpec, ) -> Pin<Box<dyn Future<Output = Result<ProviderCommandOutput>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait { ... } fn resume_managed_command<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, command_id: &'life3 str, command: &'life4 CommandSpec, ) -> Pin<Box<dyn Future<Output = Result<Option<ProviderCommandOutput>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait { ... } fn retry_managed_command<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, command_id: &'life3 str, command: &'life4 CommandSpec, ) -> Pin<Box<dyn Future<Output = Result<Option<ProviderCommandOutput>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait { ... } fn cancel_command<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, command_id: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait { ... }
}

Required Methods§

Source

fn kind(&self) -> &str

Source

fn capabilities(&self) -> ProviderCapabilities

Source

fn create_computer<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, scope: &'life1 ResourceScope, request: &'life2 ProviderComputerRequest, idempotency_key: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<ProviderResourceRef>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn delete_computer<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, external_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,

Provided Methods§

Source

fn validate_create(&self, _request: &ProviderComputerRequest) -> Result<()>

Source

fn create_space_directory<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, request: &'life3 ProviderSpaceRequest, idempotency_key: &'life4 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn delete_space_directory<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, idempotency_key: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn read_file<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, path: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<ProviderFileContent>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn write_file<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, path: &'life3 str, content: &'life4 [u8], expected_provider_revision: Option<&'life5 str>, idempotency_key: &'life6 str, ) -> Pin<Box<dyn Future<Output = Result<ProviderWriteResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait, 'life6: 'async_trait,

Source

fn delete_file<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, path: &'life3 str, idempotency_key: &'life4 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn list_files<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, path: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<ProviderFileEntry>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn create_change_set<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, source_space_directory: &'life2 str, target_space_directory: &'life3 str, idempotency_key: &'life4 str, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn apply_change_set<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, source_space_directory: &'life2 str, target_space_directory: &'life3 str, provider_change_ref: &'life4 str, idempotency_key: &'life5 str, ) -> Pin<Box<dyn Future<Output = Result<ProviderWriteResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Source

fn exec_command<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, command: &'life3 CommandSpec, ) -> Pin<Box<dyn Future<Output = Result<ProviderCommandOutput>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn exec_managed_command<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, command_id: &'life3 str, command: &'life4 CommandSpec, ) -> Pin<Box<dyn Future<Output = Result<ProviderCommandOutput>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn resume_managed_command<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, command_id: &'life3 str, command: &'life4 CommandSpec, ) -> Pin<Box<dyn Future<Output = Result<Option<ProviderCommandOutput>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn retry_managed_command<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, command_id: &'life3 str, command: &'life4 CommandSpec, ) -> Pin<Box<dyn Future<Output = Result<Option<ProviderCommandOutput>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn cancel_command<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, computer_external_id: &'life1 str, space_directory: &'life2 str, command_id: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§