pub struct NestedVirtSupport {
pub supported: bool,
pub reason: &'static str,
}Expand description
Whether this host can nest a VM, and the platform’s own reason when it cannot.
The reason is platform knowledge, not product copy: it names the
hardware or kernel requirement that failed, so a caller can surface it
without carrying a #[cfg] of its own.
Fields§
§supported: boolTrue when the hardware and kernel allow a nested guest.
reason: &'static strWhy not, when supported is false; empty otherwise.
Phrased as the requirement that failed, with no leading subject, so
a caller can prefix its own context — arcbox-api renders it as
"sandboxes cannot run on this host: {reason}" — without ending up
with two stapled-together clauses.
Trait Implementations§
Source§impl Clone for NestedVirtSupport
impl Clone for NestedVirtSupport
Source§fn clone(&self) -> NestedVirtSupport
fn clone(&self) -> NestedVirtSupport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NestedVirtSupport
Source§impl Debug for NestedVirtSupport
impl Debug for NestedVirtSupport
impl Eq for NestedVirtSupport
Source§impl PartialEq for NestedVirtSupport
impl PartialEq for NestedVirtSupport
impl StructuralPartialEq for NestedVirtSupport
Auto Trait Implementations§
impl Freeze for NestedVirtSupport
impl RefUnwindSafe for NestedVirtSupport
impl Send for NestedVirtSupport
impl Sync for NestedVirtSupport
impl Unpin for NestedVirtSupport
impl UnsafeUnpin for NestedVirtSupport
impl UnwindSafe for NestedVirtSupport
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