Struct ogle::cli::Cli[][src]

pub struct Cli {
    pub period: u64,
    pub shell: bool,
    pub until_success: bool,
    pub command: Vec<String>,
}

Fields

period: u64

Period to sleep between executions

shell: bool

Invoke the shell on the single command argument

until_success: bool

Loop until the command exists with success

command: Vec<String>

The command to run

Implementations

impl Cli[src]

pub fn from_args() -> Cli[src]

pub fn from_iter_safe<I>(iter: I) -> Result<Cli, Error> where
    Self: Sized,
    I: IntoIterator,
    I::Item: Into<OsString> + Clone
[src]

Trait Implementations

impl Debug for Cli[src]

impl StructOpt for Cli[src]

impl StructOptInternal for Cli[src]

Auto Trait Implementations

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.