Trait dittolive_ditto::fs::DittoRoot[][src]

pub trait DittoRoot: Send + Sync {
    fn root_path(&self) -> &Path;
fn data_path(&self) -> &Path;
fn exists(&self) -> bool;
fn is_valid(&self) -> Result<(), DittoError>; fn root_dir_to_c_str(&self) -> Result<Box, DittoError> { ... }
fn data_dir_to_c_str(&self) -> Result<Box, DittoError> { ... }
fn root_path_as_str(&self) -> Result<&str, DittoError> { ... }
fn data_path_as_str(&self) -> Result<&str, DittoError> { ... } }
Expand description

Interface provided by the Filesystem directory into which Ditto will store its local data

Required methods

Provided methods

Emits the Ditto Root Directory Path as a null-terminated UTF-8 C-string

Emits the Ditto Data Directory Path as a null-terminated UTF-8 C-string

Returns the path of the Ditto Data Directory as a &str

Implementors