Type Alias x11rb_protocol::RawFdContainer
source · pub type RawFdContainer = RawFdContainer;
Expand description
A type representative of the file descriptors as they are sent to and from the X server.
On cfg(unix)
platforms, this is a type alias for [std::os::unix::io::OwnedFd
]. See the
documentation for that type for more information on how it should be used. In most cases it
can be cast into a File
or UnixStream
, or otherwise downgraded into the actual
underlying file descriptor.
On non-Unix platforms, this is an uninhabited type in the same vogue as Void
. As handle
passing is an undefined operation on non-Unix implementations of the X11 protocol, instances
of this type cannot exist. No operations can be called on this type. If handle passing is ever
added to any reference implementation of the X11 protocol, this type will be changed to
something that can be used to represent the file descriptors.
Consumers of this type should be careful to check for cfg(unix)
before using it in any
meaningful way. Otherwise, the program will not compile on non-Unix platforms.
Aliased Type§
struct RawFdContainer(/* private fields */);