#[repr(transparent)]pub struct HvError(pub u16);
Tuple Fields§
§0: u16
Implementations§
source§impl HvError
impl HvError
pub const InvalidHypercallCode: HvError = _
pub const InvalidHypercallInput: HvError = _
pub const InvalidAlignment: HvError = _
pub const InvalidParameter: HvError = _
pub const AccessDenied: HvError = _
pub const InvalidPartitionState: HvError = _
pub const OperationDenied: HvError = _
pub const UnknownProperty: HvError = _
pub const PropertyValueOutOfRange: HvError = _
pub const InsufficientMemory: HvError = _
pub const PartitionTooDeep: HvError = _
pub const InvalidPartitionId: HvError = _
pub const InvalidVpIndex: HvError = _
pub const NotFound: HvError = _
pub const InvalidPortId: HvError = _
pub const InvalidConnectionId: HvError = _
pub const InsufficientBuffers: HvError = _
pub const NotAcknowledged: HvError = _
pub const InvalidVpState: HvError = _
pub const Acknowledged: HvError = _
pub const InvalidSaveRestoreState: HvError = _
pub const InvalidSynicState: HvError = _
pub const ObjectInUse: HvError = _
pub const InvalidProximityDomainInfo: HvError = _
pub const NoData: HvError = _
pub const Inactive: HvError = _
pub const NoResources: HvError = _
pub const PartialPacket: HvError = _
pub const ProcessorFeatureNotSupported: HvError = _
pub const ProcessorCacheLineFlushSizeIncompatible: HvError = _
pub const InsufficientBuffer: HvError = _
pub const IncompatibleProcessor: HvError = _
pub const InsufficientDeviceDomains: HvError = _
pub const CpuidFeatureValidationError: HvError = _
pub const CpuidXsaveFeatureValidationError: HvError = _
pub const ProcessorStartupTimeout: HvError = _
pub const SmxEnabled: HvError = _
pub const InvalidLpIndex: HvError = _
pub const InvalidRegisterValue: HvError = _
pub const InvalidVtlState: HvError = _
pub const NxNotDetected: HvError = _
pub const InvalidDeviceId: HvError = _
pub const InvalidDeviceState: HvError = _
pub const PendingPageRequests: HvError = _
pub const PageRequestInvalid: HvError = _
pub const KeyAlreadyExists: HvError = _
pub const DeviceAlreadyInDomain: HvError = _
pub const InvalidCpuGroupId: HvError = _
pub const InvalidCpuGroupState: HvError = _
pub const OperationFailed: HvError = _
pub const NotAllowedWithNestedVirtActive: HvError = _
pub const InsufficientRootMemory: HvError = _
pub const EventBufferAlreadyFreed: HvError = _
pub const Timeout: HvError = _
pub const VtlAlreadyEnabled: HvError = _
pub const UnknownRegisterName: HvError = _
Trait Implementations§
source§impl AsBytes for HvErrorwhere
u16: AsBytes,
impl AsBytes for HvErrorwhere
u16: AsBytes,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl Error for HvError
impl Error for HvError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<HvError> for HypercallOutput
impl From<HvError> for HypercallOutput
source§impl FromBytes for HvErrorwhere
u16: FromBytes,
impl FromBytes for HvErrorwhere
u16: FromBytes,
§fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeroes for HvErrorwhere
u16: FromZeroes,
impl FromZeroes for HvErrorwhere
u16: FromZeroes,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Creates a
Box<Self>
from zeroed bytes. Read moresource§impl Ord for HvError
impl Ord for HvError
source§impl PartialOrd for HvError
impl PartialOrd for HvError
impl Copy for HvError
impl Eq for HvError
impl StructuralPartialEq for HvError
Auto Trait Implementations§
impl Freeze for HvError
impl RefUnwindSafe for HvError
impl Send for HvError
impl Sync for HvError
impl Unpin for HvError
impl UnwindSafe for HvError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)