Atom

Trait Atom 

Source
pub trait Atom: Display {
    // Required methods
    fn plan(&self) -> Result<Outcome>;
    fn execute(&mut self) -> Result<()>;

    // Provided methods
    fn output_string(&self) -> String { ... }
    fn error_message(&self) -> String { ... }
    fn status_code(&self) -> i32 { ... }
}

Required Methods§

Source

fn plan(&self) -> Result<Outcome>

Source

fn execute(&mut self) -> Result<()>

Provided Methods§

Implementors§

Source§

impl Atom for Exec

Source§

impl Atom for comtrya_lib::atoms::directory::Create

Source§

impl Atom for comtrya_lib::atoms::directory::Remove

Source§

impl Atom for Chmod

Available on Unix only.
Source§

impl Atom for Chown

Available on Unix only.
Source§

impl Atom for Copy

Source§

impl Atom for comtrya_lib::atoms::file::Create

Source§

impl Atom for Decrypt

Source§

impl Atom for comtrya_lib::atoms::file::Remove

Source§

impl Atom for SetContents

Source§

impl Atom for Unarchive

Source§

impl Atom for Clone

Source§

impl Atom for Download

Source§

impl Atom for Echo