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§
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>>
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.