Struct terraform::Terraform[][src]

pub struct Terraform<P, Q> where
    P: AsRef<Path>,
    Q: AsRef<Path>, 
{ pub process: Process<P, Q>, pub sender: Sender<TerraformEvent>, // some fields omitted }

Fields

process: Process<P, Q>sender: Sender<TerraformEvent>

Implementations

impl<P, Q> Terraform<P, Q> where
    P: AsRef<Path>,
    Q: AsRef<Path>, 
[src]

pub fn new(
    binary_path: P,
    working_directory: Q,
    envs: HashMap<String, String>,
    timeout: Duration,
    sender: Sender<TerraformEvent>
) -> Result<Self, Error>
[src]

pub fn run_init(&self) -> Result<ProcessContext, Error>[src]

pub fn run_plan(&self, target_plan: P) -> Result<ProcessContext, Error> where
    P: AsRef<Path>, 
[src]

pub fn run_apply(&self, target_plan: P) -> Result<ProcessContext, Error> where
    P: AsRef<Path>, 
[src]

pub fn run_destroy(&self) -> Result<ProcessContext, Error>[src]

Auto Trait Implementations

impl<P, Q> !RefUnwindSafe for Terraform<P, Q>

impl<P, Q> Send for Terraform<P, Q> where
    P: Send,
    Q: Send

impl<P, Q> !Sync for Terraform<P, Q>

impl<P, Q> Unpin for Terraform<P, Q> where
    P: Unpin,
    Q: Unpin

impl<P, Q> !UnwindSafe for Terraform<P, Q>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.