pub struct CPUTemplate(pub CPUTemplateString);
Expand description
The CPU Template defines a set of flags to be disabled from the microvm so that the features exposed to the guest are the same as in the selected instance type. This parameter has been deprecated and it will be removed in future Firecracker release.
The following set of static CPU templates are supported:
Template | CPU vendor | CPU model |
---|---|---|
C3 | Intel | any |
T2 | Intel | any |
T2A | AMD | Milan |
T2CL | Intel | Cascade Lake or newer |
T2S | Intel | any |
V1N1 | ARM | Neoverse V1 |
Tuple Fields§
§0: CPUTemplateString
default: “None”
Trait Implementations§
Source§impl Clone for CPUTemplate
impl Clone for CPUTemplate
Source§fn clone(&self) -> CPUTemplate
fn clone(&self) -> CPUTemplate
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 CPUTemplate
impl Debug for CPUTemplate
Source§impl<'de> Deserialize<'de> for CPUTemplate
impl<'de> Deserialize<'de> for CPUTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CPUTemplate
impl Hash for CPUTemplate
Source§impl Ord for CPUTemplate
impl Ord for CPUTemplate
Source§fn cmp(&self, other: &CPUTemplate) -> Ordering
fn cmp(&self, other: &CPUTemplate) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CPUTemplate
impl PartialEq for CPUTemplate
Source§impl PartialOrd for CPUTemplate
impl PartialOrd for CPUTemplate
Source§impl Serialize for CPUTemplate
impl Serialize for CPUTemplate
impl Eq for CPUTemplate
impl StructuralPartialEq for CPUTemplate
Auto Trait Implementations§
impl Freeze for CPUTemplate
impl RefUnwindSafe for CPUTemplate
impl Send for CPUTemplate
impl Sync for CPUTemplate
impl Unpin for CPUTemplate
impl UnwindSafe for CPUTemplate
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