pub struct Dir { /* private fields */ }Expand description
RAII directory handle.
Implementations§
Source§impl Dir
impl Dir
Sourcepub fn read_entry(&mut self) -> Result<Option<DirEntry>>
pub fn read_entry(&mut self) -> Result<Option<DirEntry>>
Read the next directory entry.
Returns Ok(None) at end-of-directory — signalled either by the
OVE_ERR_EOF code or (on some backends) an empty entry name. Any
other negative code is surfaced as an Err, so a genuine I/O failure
mid-iteration is not silently mistaken for end-of-directory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dir
impl RefUnwindSafe for Dir
impl !Sync for Dir
impl Unpin for Dir
impl UnsafeUnpin for Dir
impl UnwindSafe for Dir
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more