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§
Provided Methods§
fn output_string(&self) -> String
fn error_message(&self) -> String
fn status_code(&self) -> i32
Implementors§
impl Atom for Exec
impl Atom for comtrya_lib::atoms::directory::Create
impl Atom for comtrya_lib::atoms::directory::Remove
impl Atom for Chmod
Available on Unix only.
impl Atom for Chown
Available on Unix only.