pub enum IsolationType {
None,
Vbs,
Snp,
Tdx,
}
Expand description
Isolation type for a partition.
Variants§
None
No isolation.
Vbs
Hypervisor based isolation.
Snp
Secure nested paging (AMD SEV-SNP) - hardware based isolation.
Tdx
Trust domain extensions (Intel TDX) - hardware based isolation.
Implementations§
Source§impl IsolationType
impl IsolationType
Sourcepub fn is_isolated(&self) -> bool
pub fn is_isolated(&self) -> bool
Returns true if the isolation type is not None
.
Sourcepub fn is_hardware_isolated(&self) -> bool
pub fn is_hardware_isolated(&self) -> bool
Returns whether the isolation type is hardware-backed.
Source§impl IsolationType
impl IsolationType
pub fn from_hv( value: HvPartitionIsolationType, ) -> Result<Self, UnexpectedIsolationType>
pub fn to_hv(self) -> HvPartitionIsolationType
Trait Implementations§
Source§impl Clone for IsolationType
impl Clone for IsolationType
Source§fn clone(&self) -> IsolationType
fn clone(&self) -> IsolationType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IsolationType
impl Debug for IsolationType
Source§impl PartialEq for IsolationType
impl PartialEq for IsolationType
impl Copy for IsolationType
impl Eq for IsolationType
impl StructuralPartialEq for IsolationType
Auto Trait Implementations§
impl Freeze for IsolationType
impl RefUnwindSafe for IsolationType
impl Send for IsolationType
impl Sync for IsolationType
impl Unpin for IsolationType
impl UnwindSafe for IsolationType
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