Skip to main content

Module files

Module files 

Source

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.
FdIdWith ๐Ÿ”’
FdTable
The file descriptor table
FileDescriptionRef
A refcounted pointer to a file description, also tracking the globally unique ID of this file description.
FileHandle
NullOutput
Like /dev/null
Stderr ๐Ÿ”’
Stdin ๐Ÿ”’
Stdout ๐Ÿ”’
WeakFileDescriptionRef
Holds a weak reference to the actual file description.

Traitsยง

EvalContextExt
FileDescription
Represents an open file description.
FileDescriptionExt
A helper trait to indirectly allow downcasting on Rc<FdIdWith<dyn _>>. Ideally weโ€™d just add a FdIdWith<Self>: Any bound to the FileDescription trait, but that does not allow upcasting.

Type Aliasesยง

DynFileDescriptionRef
FdNum
Internal type of a file-descriptor - this is what FdTable expects
WeakDynFileDescriptionRef