struct DirStream {
read_dir: ReadDir,
fd_num: i32,
fd_id: FdId,
special_entries: Vec<&'static str>,
entry: Option<Pointer>,
}Expand description
An open directory stream, tracked by DirTable.
Fields§
§read_dir: ReadDirThe directory reader on the host.
fd_num: i32An FD number for the same handle. Unix directory streams have an “underlying FD” that can be exposed; this is that FD. 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>The most recent entry returned by readdir(). Will be freed by the next call.
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
Mutably borrows from an owned value. Read more
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: 88 bytes