Re-exports§
pub use system_info::iov_max;pub use system_info::number_of_logical_cores;pub use system_info::pagesize;pub use descriptor::*;
Modules§
- descriptor
- fcntl 🔒
- file_
flags 🔒 - file_
traits - FileReadWriteAtVolatile is implemented in terms of
preadandpwrite. These are provided by platform-specific imports. On Linux they resolve to the 64-bit versions, while on MacOS the base versions are already 64-bit. - handle_
eintr - Macro and helper trait for handling interrupted routines.
- iobuf 🔒
- net
- sock_
ctrl_ 🔒msg - Used to send and receive messages with file descriptors on sockets that accept control messages (e.g. Unix domain sockets).
- stream_
channel 🔒 - system_
info - time 🔒
- tube
Structs§
- ScmSocket
- Trait for file descriptors can send and receive socket control messages via
sendmsgandrecvmsg. - Stream
Channel - An abstraction over named pipes and unix socketpairs. This abstraction can be used in a blocking and non blocking mode.
Enums§
Constants§
- SCM_
MAX_ FD - SCM_
SOCKET_ MAX_ FD_ COUNT - The maximum number of FDs that can be sent in a single send.
Traits§
- AsIobuf
- Trait for types that can be converted into an
iovecthat can be referenced by a syscall for the lifetime of this object.
Functions§
- add_
fd_ flags - Performs a logical OR of the given flags with the FD’s flags, setting the given bits for the FD.
- clear_
fd_ flags - Clears the given flags in the FD’s flags.
- duration_
to_ timespec - Return a timespec filed with the specified Duration
duration.
Type Aliases§
- IoBuf
- Cross platform binary compatible iovec. See
crate::IoBufMutfor documentation. - Pid
- Process identifier.