pub unsafe fn copy_to_fd(
        &self,
        fd: ffi::mdb_filehandle_t,
        option: CompactionOption,
    ) -> Result<()> {
        let flags = if let CompactionOption::Enabled = option { ffi::MDB_CP_COMPACT } else { 0 };

        mdb_result(ffi::mdb_env_copy2fd(self.0.env, fd, flags))?;

        Ok(())
    }
/// Copy the environnement to the provided file descriptor.
Copy the environnement to the provided file descriptor.
Copy the environnement to the provided file descriptor .
pub unsafe fn copy_to_fd(
        &self,
        fd: ffi::mdb_filehandle_t,
        option: CompactionOption,
    ) -> Result<()> {
        let flags = if let CompactionOption::Enabled = option { ffi::MDB_CP_COMPACT } else { 0 };
        mdb_result(ffi::mdb_env_copy2fd(self.0.env, fd, flags))?;
        Ok(())
    }
pub unsafe fn copy_to_fd ( & self , fd : ffi :: mdb_filehandle_t , option : CompactionOption , ) -> Result < ( ) > { let flags = if let CompactionOption :: Enabled = option { ffi :: MDB_CP_COMPACT } else { 0 } ; mdb_result ( ffi :: mdb_env_copy2fd ( self . 0 . env , fd , flags ) ) ? ; Ok ( ( ) ) }
Copy the environnement to the provided file descriptor.
Copy the environnement to the provided file descriptor .
&self
fd
ffi::mdb_filehandle_t
option
CompactionOption
&self
fd
ffi::mdb_filehandle_t
option
CompactionOption