Trait comtrya_lib::atoms::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

source§

impl Atom for Chown

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 Download

source§

impl Atom for Echo