Skip to main content

LocalEnvironmentProvider

Struct LocalEnvironmentProvider 

Source
pub struct LocalEnvironmentProvider { /* private fields */ }
Expand description

Development-only environment provider. Production composition never constructs this adapter.

Implementations§

Trait Implementations§

Source§

impl Clone for LocalEnvironmentProvider

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ComputerProvider for LocalEnvironmentProvider

Source§

fn kind(&self) -> &str

Source§

fn capabilities(&self) -> ProviderCapabilities

Source§

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,

Source§

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,

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, _: &'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, _: &'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], __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,

Source§

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,

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, _: &'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 validate_create( &self, _request: &ProviderComputerRequest, ) -> Result<(), Error>

Source§

impl Debug for LocalEnvironmentProvider

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl EnvironmentProviderRegistry for LocalEnvironmentProvider

Source§

fn computer(&self, provider: &str) -> Result<Arc<dyn ComputerProvider>>

Source§

fn sandbox(&self, provider: &str) -> Result<Arc<dyn SandboxProvider>>

Source§

fn space(&self, provider: &str) -> Result<Arc<dyn SpaceProvider>>

Source§

fn snapshot(&self, provider: &str) -> Result<Arc<dyn SnapshotProviderPort>>

Source§

fn template(&self, provider: &str) -> Result<Arc<dyn TemplateProviderPort>>

Source§

impl SandboxProvider for LocalEnvironmentProvider

Source§

fn kind(&self) -> &str

Source§

fn capabilities(&self) -> ProviderCapabilities

Source§

fn validate_create(&self, request: &ProviderSandboxRequest) -> Result<()>

Source§

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,

Source§

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

Source§

fn kind(&self) -> &str

Source§

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,

Source§

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

Source§

fn kind(&self) -> &str

Source§

fn capabilities(&self) -> ProviderCapabilities

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

impl TemplateProviderPort for LocalEnvironmentProvider

Source§

fn kind(&self) -> &str

Source§

fn inspect_template<'life0, 'life1, 'async_trait>( &'life0 self, _: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<ProviderCapabilities>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.