Backend

Trait Backend 

Source
pub trait Backend: Default {
    // Required methods
    fn init(&self) -> Result<()>;
    fn sync(
        &self,
        direction: Direction,
        files: Vec<PathBuf>,
        ignored: Vec<PathBuf>,
    ) -> Result<()>;
    fn list(&self) -> Vec<PathBuf>;
}

Required Methods§

Source

fn init(&self) -> Result<()>

Source

fn sync( &self, direction: Direction, files: Vec<PathBuf>, ignored: Vec<PathBuf>, ) -> Result<()>

Source

fn list(&self) -> Vec<PathBuf>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§