pub trait TerraformCommand: Send + Sync {
type Output: Send;
// Required methods
fn args(&self) -> Vec<String>;
fn execute(
&self,
tf: &Terraform,
) -> impl Future<Output = Result<Self::Output>> + Send;
}Expand description
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl TerraformCommand for ApplyCommand
impl TerraformCommand for ApplyCommand
type Output = CommandOutput
Source§impl TerraformCommand for DestroyCommand
impl TerraformCommand for DestroyCommand
type Output = CommandOutput
Source§impl TerraformCommand for InitCommand
impl TerraformCommand for InitCommand
type Output = CommandOutput
Source§impl TerraformCommand for OutputCommand
impl TerraformCommand for OutputCommand
type Output = OutputResult
Source§impl TerraformCommand for PlanCommand
impl TerraformCommand for PlanCommand
type Output = CommandOutput
Source§impl TerraformCommand for ValidateCommand
Available on crate feature json only.
impl TerraformCommand for ValidateCommand
Available on crate feature
json only.type Output = ValidationResult
Source§impl TerraformCommand for VersionCommand
Available on crate feature json only.
impl TerraformCommand for VersionCommand
Available on crate feature
json only.