hvdef

Struct HvError

Source
pub struct HvError(/* private fields */);
Expand description

An HvStatus value representing an error.

Implementations§

Source§

impl HvError

Source

pub const InvalidHypercallCode: Self = _

Invalid hypercall code

Source

pub const InvalidHypercallInput: Self = _

Invalid hypercall input

Source

pub const InvalidAlignment: Self = _

Invalid alignment

Source

pub const InvalidParameter: Self = _

Invalid parameter

Source

pub const AccessDenied: Self = _

Access denied

Source

pub const InvalidPartitionState: Self = _

Invalid partition state

Source

pub const OperationDenied: Self = _

Operation denied

Source

pub const UnknownProperty: Self = _

Unknown property

Source

pub const PropertyValueOutOfRange: Self = _

Property value out of range

Source

pub const InsufficientMemory: Self = _

Insufficient memory

Source

pub const PartitionTooDeep: Self = _

Partition too deep

Source

pub const InvalidPartitionId: Self = _

Invalid partition ID

Source

pub const InvalidVpIndex: Self = _

Invalid VP index

Source

pub const NotFound: Self = _

Not found

Source

pub const InvalidPortId: Self = _

Invalid port ID

Source

pub const InvalidConnectionId: Self = _

Invalid connection ID

Source

pub const InsufficientBuffers: Self = _

Insufficient buffers

Source

pub const NotAcknowledged: Self = _

Not acknowledged

Source

pub const InvalidVpState: Self = _

Invalid VP state

Source

pub const Acknowledged: Self = _

Acknowledged

Source

pub const InvalidSaveRestoreState: Self = _

Invalid save restore state

Source

pub const InvalidSynicState: Self = _

Invalid SynIC state

Source

pub const ObjectInUse: Self = _

Object in use

Source

pub const InvalidProximityDomainInfo: Self = _

Invalid proximity domain info

Source

pub const NoData: Self = _

No data

Source

pub const Inactive: Self = _

Inactive

Source

pub const NoResources: Self = _

No resources

Source

pub const FeatureUnavailable: Self = _

Feature unavailable

Source

pub const PartialPacket: Self = _

Partial packet

Source

pub const ProcessorFeatureNotSupported: Self = _

Processor feature not supported

Source

pub const ProcessorCacheLineFlushSizeIncompatible: Self = _

Processor cache line flush size incompatible

Source

pub const InsufficientBuffer: Self = _

Insufficient buffer

Source

pub const IncompatibleProcessor: Self = _

Incompatible processor

Source

pub const InsufficientDeviceDomains: Self = _

Insufficient device domains

Source

pub const CpuidFeatureValidationError: Self = _

CPUID feature validation error

Source

pub const CpuidXsaveFeatureValidationError: Self = _

CPUID XSAVE feature validation error

Source

pub const ProcessorStartupTimeout: Self = _

Processor startup timeout

Source

pub const SmxEnabled: Self = _

SMX enabled

Source

pub const InvalidLpIndex: Self = _

Invalid LP index

Source

pub const InvalidRegisterValue: Self = _

Invalid register value

Source

pub const InvalidVtlState: Self = _

Invalid VTL state

Source

pub const NxNotDetected: Self = _

NX not detected

Source

pub const InvalidDeviceId: Self = _

Invalid device ID

Source

pub const InvalidDeviceState: Self = _

Invalid device state

Source

pub const PendingPageRequests: Self = _

Pending page requests

Source

pub const PageRequestInvalid: Self = _

Page request invalid

Source

pub const KeyAlreadyExists: Self = _

Key already exists

Source

pub const DeviceAlreadyInDomain: Self = _

Device already in domain

Source

pub const InvalidCpuGroupId: Self = _

Invalid CPU group ID

Source

pub const InvalidCpuGroupState: Self = _

Invalid CPU group state

Source

pub const OperationFailed: Self = _

Operation failed

Source

pub const NotAllowedWithNestedVirtActive: Self = _

Not allowed with nested virtualization active

Source

pub const InsufficientRootMemory: Self = _

Insufficient root memory

Source

pub const EventBufferAlreadyFreed: Self = _

Event buffer already freed

Source

pub const Timeout: Self = _

The specified timeout expired before the operation completed.

Source

pub const VtlAlreadyEnabled: Self = _

The VTL specified for the operation is already in an enabled state.

Source

pub const UnknownRegisterName: Self = _

Unknown register name

Trait Implementations§

Source§

impl Clone for HvError

Source§

fn clone(&self) -> HvError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HvError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for HvError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for HvError

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<HvError> for HypercallOutput

Source§

fn from(e: HvError) -> Self

Converts to this type from the input type.
Source§

impl From<NonZero<u16>> for HvError

Source§

fn from(err: NonZeroU16) -> Self

Converts to this type from the input type.
Source§

impl IntoBytes for HvError
where NonZeroU16: IntoBytes,

§

fn as_bytes(&self) -> &[u8]
where Self: Immutable,

Gets the bytes of this value. Read more
§

fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to dst. Read more
§

fn write_to_prefix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the prefix of dst. Read more
§

fn write_to_suffix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the suffix of dst. Read more
Source§

impl KnownLayout for HvError
where Self: Sized,

Source§

type PointerMetadata = ()

The type of metadata stored in a pointer to Self. Read more
Source§

impl PartialEq for HvError

Source§

fn eq(&self, other: &HvError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for HvError

Source§

impl Eq for HvError

Source§

impl Immutable for HvError
where NonZeroU16: Immutable,

Source§

impl StructuralPartialEq for HvError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.