Skip to main content

Module descriptor

Module descriptor 

Source
Expand description

A descriptor a local connection carries: an open file, or one end of a connection.

A Unix connection hands the file descriptor itself; Windows hands a handle. Both are one type here, so a protocol above this crate names it once and means the same thing on every target. Sending one beside a line is the caller’s transport: SCM_RIGHTS on a Unix socket, and a handle duplicated into the process at the other end on Windows.

Structs§

Descriptor
An open file or connection, carried beside a message on a local connection.