Trait ai::hook::FilePath

source ·
pub trait FilePath {
    // Required methods
    fn write(&self, msg: String) -> Result<()>;
    fn read(&self) -> Result<String>;

    // Provided method
    fn is_empty(&self) -> Result<bool> { ... }
}

Required Methods§

source

fn write(&self, msg: String) -> Result<()>

source

fn read(&self) -> Result<String>

Provided Methods§

source

fn is_empty(&self) -> Result<bool>

Implementations on Foreign Types§

source§

impl FilePath for PathBuf

source§

fn write(&self, msg: String) -> Result<()>

source§

fn read(&self) -> Result<String>

Implementors§