pub enum BinaryHeaderError {
Show 26 variants
UnalignedAddress(u64),
UnalignedSize(u64),
InvalidDataSize,
InvalidVariableHeaderSize,
InvalidVariableHeaderType,
InvalidPageDataType,
InvalidVpContextPlatformType,
InvalidVmsa,
InvalidContext,
InvalidCompatibilityMask,
InvalidVtl,
InvalidPlatformType,
InvalidPlatformVersion,
InvalidSharedGpaBoundary,
InvalidOnesZeroesMasks,
ReservedNotZero,
NoVbsVpContextRegisters,
RelocationSize,
RelocationAlignment,
RelocationAddress(u64),
InvalidPageTableRegionSize,
UnsupportedX64Register(UnsupportedRegister<HvX64RegisterName>),
UnsupportedAArch64Register(UnsupportedRegister<HvArm64RegisterName>),
MultipleCorimDocuments(u32),
MultipleCorimSignatures(u32),
MissingCorimDocument(u32),
}Expand description
Binary serialization errors when converting a typed Rust
IgvmDirectiveHeader to the corresponding IGVM binary format or vice
versa.
Variants§
UnalignedAddress(u64)
UnalignedSize(u64)
InvalidDataSize
InvalidVariableHeaderSize
InvalidVariableHeaderType
InvalidPageDataType
InvalidVpContextPlatformType
InvalidVmsa
InvalidContext
InvalidCompatibilityMask
InvalidVtl
InvalidPlatformType
InvalidPlatformVersion
InvalidOnesZeroesMasks
ReservedNotZero
NoVbsVpContextRegisters
RelocationSize
RelocationAlignment
RelocationAddress(u64)
InvalidPageTableRegionSize
UnsupportedX64Register(UnsupportedRegister<HvX64RegisterName>)
UnsupportedAArch64Register(UnsupportedRegister<HvArm64RegisterName>)
MultipleCorimDocuments(u32)
Available on crate feature
corim only.MultipleCorimSignatures(u32)
Available on crate feature
corim only.MissingCorimDocument(u32)
Available on crate feature
corim only.Trait Implementations§
Source§impl Debug for BinaryHeaderError
impl Debug for BinaryHeaderError
Source§impl Display for BinaryHeaderError
impl Display for BinaryHeaderError
Source§impl Error for BinaryHeaderError
impl Error for BinaryHeaderError
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<UnsupportedRegister<HvArm64RegisterName>> for BinaryHeaderError
impl From<UnsupportedRegister<HvArm64RegisterName>> for BinaryHeaderError
Source§fn from(source: UnsupportedRegister<HvArm64RegisterName>) -> Self
fn from(source: UnsupportedRegister<HvArm64RegisterName>) -> Self
Converts to this type from the input type.
Source§impl From<UnsupportedRegister<HvX64RegisterName>> for BinaryHeaderError
impl From<UnsupportedRegister<HvX64RegisterName>> for BinaryHeaderError
Source§fn from(source: UnsupportedRegister<HvX64RegisterName>) -> Self
fn from(source: UnsupportedRegister<HvX64RegisterName>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BinaryHeaderError
impl RefUnwindSafe for BinaryHeaderError
impl Send for BinaryHeaderError
impl Sync for BinaryHeaderError
impl Unpin for BinaryHeaderError
impl UnsafeUnpin for BinaryHeaderError
impl UnwindSafe for BinaryHeaderError
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