Structsยง
- DirHandle
- FdId
- A unique id for file descriptions. While we could use the address, considering that
is definitely unique, the address would expose interpreter internal state when used
for sorting things. So instead we generate a unique id per file description which is the same
for all
duplicates and is never reused. - FdId
With ๐ - FdTable
- The file descriptor table
- File
Description Ref - A refcounted pointer to a file description, also tracking the globally unique ID of this file description.
- File
Handle - Null
Output - Like /dev/null
- Stderr ๐
- Stdin ๐
- Stdout ๐
- Weak
File Description Ref - Holds a weak reference to the actual file description.
Traitsยง
- Eval
Context Ext - File
Description - Represents an open file description.
- File
Description Ext - A helper trait to indirectly allow downcasting on
Rc<FdIdWith<dyn _>>. Ideally weโd just add aFdIdWith<Self>: Anybound to theFileDescriptiontrait, but that does not allow upcasting.
Type Aliasesยง
- DynFile
Description Ref - FdNum
- Internal type of a file-descriptor - this is what
FdTableexpects - Weak
DynFile Description Ref