pub type DirRef = Arc<Mutex<dyn Directory + Send>>;
A reference to any type that implements the Directory trait, which can only represent a Directory (not a File).
Directory
struct DirRef { /* private fields */ }