Function base::clone_descriptor
source · pub fn clone_descriptor(
descriptor: &dyn AsRawDescriptor
) -> Result<RawDescriptor>Expand description
Clones descriptor, returning a new RawDescriptor that refers to the same open file
description as descriptor. The cloned descriptor will have the FD_CLOEXEC flag set but will
not share any other file descriptor flags with descriptor.