struct DirStream {
read_dir: ReadDir,
fd_num: i32,
fd_id: FdId,
special_entries: Vec<&'static str>,
entry: Option<(Pointer, &'static str)>,
}Expand description
An open directory stream (DIR), tracked by DirTable.
Fields§
§read_dir: ReadDirThe directory stream on the host.
fd_num: i32Unix directory streams have an “underlying FD” that can be exposed; this is that FD. This is not a reference; it can be separately closed, leading to UB if the DIR is used again. We also store the FD ID to catch cases where the FD was closed and a different one re-opened.
fd_id: FdId§special_entries: Vec<&'static str>The “special” entries that must still be yielded by the iterator.
Used for . and ...
entry: Option<(Pointer, &'static str)>The most recent entry returned by readdir(). Will be freed by the next call. The string is the type used to allocate it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !DynSend for DirStream
impl !DynSync for DirStream
impl Freeze for DirStream
impl RefUnwindSafe for DirStream
impl Send for DirStream
impl Sync for DirStream
impl Unpin for DirStream
impl UnsafeUnpin for DirStream
impl UnwindSafe for DirStream
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 104 bytes