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§
Required Methods§
sourcefn contains(&self, name: &PathSegment) -> bool
fn contains(&self, name: &PathSegment) -> bool
Return true
if this directory has an entry at the given PathSegment
.