Function winspawn::move_fd[][src]

pub fn move_fd<E, R, F>(
    fd: &FileDescriptor,
    dest: c_int,
    func: F
) -> Result<R, E> where
    F: FnOnce(&FileDescriptor) -> Result<R, E>,
    E: From<Error>, 
Expand description

Move fd temporary and call func.

This function valid in this library lock acquires.