Object

Trait Object 

Source
pub trait Object {
    // Required methods
    fn create(&self) -> Result<(), Error>;
    fn remove(&self) -> Result<(), Error>;
    fn path(&self) -> &Path;
    fn name(&self) -> &str;
    fn full(&self) -> PathBuf;
}
Expand description

An object is something that exists in the filesystem.

Required Methods§

Source

fn create(&self) -> Result<(), Error>

Create the object

Source

fn remove(&self) -> Result<(), Error>

Remove the object

Source

fn path(&self) -> &Path

Get the parent of the object

Source

fn name(&self) -> &str

Get the name of the object.

Source

fn full(&self) -> PathBuf

Get the full path of the object, IE path + name

Implementors§