/// Creates a new Mshv object assuming `fd` represents an existing open file descriptor
/// associated with `/dev/mshv`.
///
/// # Safety
///
/// This function is unsafe as the primitives currently returned have the contract that
/// they are the sole owner of the file descriptor they are wrapping. Usage of this function
/// could accidentally allow violating this contract which can cause memory unsafety in code
/// that relies on it being true.
///
/// The caller of this method must make sure the fd is valid and nothing else uses it.
Creates a new Mshv object assuming `fd` represents an existing open file descriptor
associated with `/dev/mshv`.
Creates a new Mshv object assuming ` fd ` represents an existing open file descriptor associated with ` / dev / mshv ` .
pub unsafe fn new_with_fd_number(fd: RawFd) -> Self {
        Mshv {
            hv: File::from_raw_fd(fd),
        }
    }
pub unsafe fn new_with_fd_number ( fd : RawFd ) -> Self { Mshv { hv : File :: from_raw_fd ( fd ) , } }
Creates a new Mshv object assuming `fd` represents an existing open file descriptor
associated with `/dev/mshv`.
Creates a new Mshv object assuming ` fd ` represents an existing open file descriptor associated with ` / dev / mshv ` .
fd
RawFd
safety
This function is unsafe as the primitives currently returned have the contract that
they are the sole owner of the file descriptor they are wrapping. Usage of this function
could accidentally allow violating this contract which can cause memory unsafety in code
that relies on it being true.

The caller of this method must make sure the fd is valid and nothing else uses it.
This function is unsafe as the primitives currently returned have the contract that they are the sole owner of the file descriptor they are wrapping . Usage of this function could accidentally allow violating this contract which can cause memory unsafety in code that relies on it being true . The caller of this method must make sure the fd is valid and nothing else uses it .