Trait tc_transact::fs::DirRead

source ·
pub trait DirRead: Send {
    type Lock: Dir;

    fn contains(&self, name: &PathSegment) -> bool;
    fn get_dir(&self, name: &PathSegment) -> TCResult<Option<Self::Lock>>;
    fn is_empty(&self) -> bool;
    fn len(&self) -> usize;
}
Expand description

A read lock on a Dir

Required Associated Types§

The type of lock used to guard subdirectories in this Dir

Required Methods§

Return true if this directory has an entry at the given PathSegment.

Look up a subdirectory of this Dir.

Return true if there are no files or subdirectories in this Dir.

Return the number of entries in this Dir.

Implementors§