pub enum TdgPageReleaseError {
Unknown(TdCallResultCode),
NotAllocated(TdCallResultCode),
EntryStateInvalid {
result: TdCallResultCode,
pending: bool,
mmio: bool,
},
PageSizeMismatch {
result: TdCallResultCode,
expected_level: TdgMemPageLevel,
},
Invalid(TdCallResultCode),
Busy(TdCallResultCode),
}Expand description
The error information returned from tdcall_release_page.
Variants§
Unknown(TdCallResultCode)
Unknown error type.
NotAllocated(TdCallResultCode)
Page not allocated to TD’s GPA Space
EntryStateInvalid
Page is in an invalid entry state
Fields
§
result: TdCallResultCodeAssociated TDX Result Code
PageSizeMismatch
Size mismatch
Fields
§
result: TdCallResultCodeAssociated TDX Result Code
§
expected_level: TdgMemPageLevelExpected page level
Invalid(TdCallResultCode)
Invalid operand
Busy(TdCallResultCode)
Busy Operand
Trait Implementations§
Source§impl Debug for TdgPageReleaseError
impl Debug for TdgPageReleaseError
Source§impl Display for TdgPageReleaseError
impl Display for TdgPageReleaseError
Source§impl Error for TdgPageReleaseError
impl Error for TdgPageReleaseError
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()
Auto Trait Implementations§
impl Freeze for TdgPageReleaseError
impl RefUnwindSafe for TdgPageReleaseError
impl Send for TdgPageReleaseError
impl Sync for TdgPageReleaseError
impl Unpin for TdgPageReleaseError
impl UnsafeUnpin for TdgPageReleaseError
impl UnwindSafe for TdgPageReleaseError
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