pub struct LocalEnvironmentProvider { /* private fields */ }Expand description
Development-only environment provider. Production composition never constructs this adapter.
Implementations§
Source§impl LocalEnvironmentProvider
impl LocalEnvironmentProvider
pub fn for_local_development(root: impl Into<PathBuf>) -> Result<Self>
Trait Implementations§
Source§impl Clone for LocalEnvironmentProvider
impl Clone for LocalEnvironmentProvider
Source§impl ComputerProvider for LocalEnvironmentProvider
impl ComputerProvider for LocalEnvironmentProvider
fn kind(&self) -> &str
fn capabilities(&self) -> ProviderCapabilities
fn create_computer<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 ResourceScope,
_: &'life2 ProviderComputerRequest,
_: &'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,
_: &'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 create_space_directory<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
computer_external_id: &'life1 str,
space_directory: &'life2 str,
request: &'life3 ProviderSpaceRequest,
_: &'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,
_: &'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],
__arg5: Option<&'life5 str>,
_: &'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 create_change_set<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
computer_external_id: &'life1 str,
source_space_directory: &'life2 str,
_: &'life3 str,
_: &'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,
_: &'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 validate_create( &self, _request: &ProviderComputerRequest, ) -> Result<(), Error>
Source§impl Debug for LocalEnvironmentProvider
impl Debug for LocalEnvironmentProvider
Source§impl EnvironmentProviderRegistry for LocalEnvironmentProvider
impl EnvironmentProviderRegistry for LocalEnvironmentProvider
fn computer(&self, provider: &str) -> Result<Arc<dyn ComputerProvider>>
fn sandbox(&self, provider: &str) -> Result<Arc<dyn SandboxProvider>>
fn space(&self, provider: &str) -> Result<Arc<dyn SpaceProvider>>
fn snapshot(&self, provider: &str) -> Result<Arc<dyn SnapshotProviderPort>>
fn template(&self, provider: &str) -> Result<Arc<dyn TemplateProviderPort>>
Source§impl SandboxProvider for LocalEnvironmentProvider
impl SandboxProvider for LocalEnvironmentProvider
fn kind(&self) -> &str
fn capabilities(&self) -> ProviderCapabilities
fn validate_create(&self, request: &ProviderSandboxRequest) -> Result<()>
fn create_sandbox<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 ResourceScope,
request: &'life2 ProviderSandboxRequest,
_: &'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 stop_sandbox<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
external_id: &'life1 str,
_: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl SnapshotProviderPort for LocalEnvironmentProvider
impl SnapshotProviderPort for LocalEnvironmentProvider
fn kind(&self) -> &str
fn capture_snapshot<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
source: &'life1 ProviderSnapshotSource,
_: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<ProviderResourceRef>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete_snapshot<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
external_id: &'life1 str,
_: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl SpaceProvider for LocalEnvironmentProvider
impl SpaceProvider for LocalEnvironmentProvider
fn kind(&self) -> &str
fn capabilities(&self) -> ProviderCapabilities
fn create_space<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 ResourceScope,
_request: &'life2 ProviderSpaceRequest,
_: &'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 read_file<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_: &'life1 str,
_: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<ProviderFileContent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn write_file<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
_: &'life1 str,
_: &'life2 str,
_: &'life3 [u8],
__arg4: Option<&'life4 str>,
_: &'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 create_change_set<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 str,
_: &'life2 str,
_: &'life3 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,
fn apply_change_set<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_: &'life1 str,
_: &'life2 str,
_: &'life3 str,
_: &'life4 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,
fn delete_space<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_: &'life1 str,
_: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for LocalEnvironmentProvider
impl RefUnwindSafe for LocalEnvironmentProvider
impl Send for LocalEnvironmentProvider
impl Sync for LocalEnvironmentProvider
impl Unpin for LocalEnvironmentProvider
impl UnsafeUnpin for LocalEnvironmentProvider
impl UnwindSafe for LocalEnvironmentProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more