Trait System

Source
pub trait System {
    // Required methods
    fn walk_entries<F: Fn(EntryResult<'_>)>(
        &self,
        abs_root: &Path,
        rel_root: &Path,
        git_cache: Option<Rc<GitCache>>,
        function: &F,
    ) -> MyResult<()>;
    fn get_entry(&self, path: &Path) -> MyResult<Rc<Box<dyn Entry>>>;
    fn read_sig(&self, entry: &dyn Entry) -> Option<Signature>;
    fn read_link(&self, entry: &dyn Entry) -> MyResult<Option<PathBuf>>;
    fn get_mask(&self, uid: uid_t, gid: gid_t) -> u32;
    fn find_user(&self, uid: uid_t) -> Option<Rc<String>>;
    fn find_group(&self, gid: gid_t) -> Option<Rc<String>>;
}

Required Methods§

Source

fn walk_entries<F: Fn(EntryResult<'_>)>( &self, abs_root: &Path, rel_root: &Path, git_cache: Option<Rc<GitCache>>, function: &F, ) -> MyResult<()>

Source

fn get_entry(&self, path: &Path) -> MyResult<Rc<Box<dyn Entry>>>

Source

fn read_sig(&self, entry: &dyn Entry) -> Option<Signature>

Source

fn get_mask(&self, uid: uid_t, gid: gid_t) -> u32

Source

fn find_user(&self, uid: uid_t) -> Option<Rc<String>>

Source

fn find_group(&self, gid: gid_t) -> Option<Rc<String>>

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§

Source§

impl<'a> System for FileSystem<'a>