Implementations
impl Dir
pub fn from<F: IntoFd>(fd: F) -> io::Result<Self>
Construct a Dir
, assuming ownership of the file descriptor.
pub fn rewind(&mut Self)
rewinddir(self)
pub fn read(&mut Self) -> Option<io::Result<DirEntry>>
readdir(self)
, where None
means the end of the directory.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Dir
impl UnwindSafe for Dir
Blanket Implementations
impl<T> AsFilelike for T
where
T: AsFd,
where
T: AsFd,
fn as_filelike(&Self) -> BorrowedFd<'_>
fn as_filelike_view<Target>(&Self) -> FilelikeView<'_, Target>
where
Target: FromFilelike + IntoFilelike
impl<T> AsSocketlike for T
where
T: AsFd,
where
T: AsFd,
fn as_socketlike(&Self) -> BorrowedFd<'_>
fn as_socketlike_view<Target>(&Self) -> FilelikeView<'_, Target>
where
Target: FromSocketlike + IntoSocketlike
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T