[][src]Struct buildkit_llb::ops::Command

pub struct Command<'a> { /* fields omitted */ }

Command execution operation. This is what a Dockerfile's RUN directive is translated to.

Methods

impl<'a> Command<'a>[src]

pub fn run<S>(name: S) -> Self where
    S: Into<String>, 
[src]

pub fn args<A, S>(self, args: A) -> Self where
    A: IntoIterator<Item = S>,
    S: AsRef<str>, 
[src]

pub fn env<S, Q>(self, name: S, value: Q) -> Self where
    S: AsRef<str>,
    Q: AsRef<str>, 
[src]

pub fn env_iter<I, S, Q>(self, iter: I) -> Self where
    I: IntoIterator<Item = (S, Q)>,
    S: AsRef<str>,
    Q: AsRef<str>, 
[src]

pub fn cwd<P>(self, path: P) -> Self where
    P: Into<PathBuf>, 
[src]

pub fn user<S>(self, user: S) -> Self where
    S: Into<String>, 
[src]

pub fn mount<P>(self, mount: Mount<'a, P>) -> Self where
    P: AsRef<Path>, 
[src]

Trait Implementations

impl<'a> Clone for Command<'a>[src]

impl<'a> Debug for Command<'a>[src]

impl<'a, 'b: 'a> MultiBorrowedOutput<'b> for Command<'b>[src]

impl<'a> OperationBuilder<'a> for Command<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Command<'a>

impl<'a> Send for Command<'a>

impl<'a> Sync for Command<'a>

impl<'a> Unpin for Command<'a>

impl<'a> !UnwindSafe for Command<'a>

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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.