pub enum SystemdDetectVirtOutput {
Cms(ConfidentialVirtualizationTechnology),
Vm(SystemdDetectVirtVm),
Container(SystemdDetectVirtContainer),
None,
}
Expand description
The output of systemd-detect-virt.
Variants§
Cms(ConfidentialVirtualizationTechnology)
A confidential virtualization technology.
Vm(SystemdDetectVirtVm)
A VM environment.
Container(SystemdDetectVirtContainer)
A container environment.
None
No virtual environment.
Implementations§
Source§impl SystemdDetectVirtOutput
impl SystemdDetectVirtOutput
Sourcepub fn uses_namespaces(&self) -> bool
pub fn uses_namespaces(&self) -> bool
Evaluate whether the SystemdDetectVirtOutput
requires kernel namespaces.
Trait Implementations§
Source§impl Clone for SystemdDetectVirtOutput
impl Clone for SystemdDetectVirtOutput
Source§fn clone(&self) -> SystemdDetectVirtOutput
fn clone(&self) -> SystemdDetectVirtOutput
Returns a duplicate 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 SystemdDetectVirtOutput
impl Debug for SystemdDetectVirtOutput
Source§impl Display for SystemdDetectVirtOutput
impl Display for SystemdDetectVirtOutput
Source§impl FromStr for SystemdDetectVirtOutput
impl FromStr for SystemdDetectVirtOutput
Source§impl PartialEq for SystemdDetectVirtOutput
impl PartialEq for SystemdDetectVirtOutput
impl Copy for SystemdDetectVirtOutput
impl Eq for SystemdDetectVirtOutput
impl StructuralPartialEq for SystemdDetectVirtOutput
Auto Trait Implementations§
impl Freeze for SystemdDetectVirtOutput
impl RefUnwindSafe for SystemdDetectVirtOutput
impl Send for SystemdDetectVirtOutput
impl Sync for SystemdDetectVirtOutput
impl Unpin for SystemdDetectVirtOutput
impl UnwindSafe for SystemdDetectVirtOutput
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