pub struct PetriVmArtifacts<T: PetriVmmBackend> {
pub backend: T,
pub firmware: Firmware,
pub arch: MachineArch,
pub agent_image: Option<AgentImage>,
pub openhcl_agent_image: Option<AgentImage>,
}Expand description
The set of artifacts and resources needed to instantiate a
PetriVmBuilder.
Fields§
§backend: TArtifacts needed to launch the host VMM used for the test
firmware: FirmwareFirmware and/or OS to load into the VM and associated settings
arch: MachineArchThe architecture of the VM
agent_image: Option<AgentImage>Agent to run in the guest
openhcl_agent_image: Option<AgentImage>Agent to run in OpenHCL
Implementations§
Source§impl<T: PetriVmmBackend> PetriVmArtifacts<T>
impl<T: PetriVmmBackend> PetriVmArtifacts<T>
Sourcepub fn new(
resolver: &ArtifactResolver<'_>,
firmware: Firmware,
arch: MachineArch,
with_vtl0_pipette: bool,
) -> Option<Self>
pub fn new( resolver: &ArtifactResolver<'_>, firmware: Firmware, arch: MachineArch, with_vtl0_pipette: bool, ) -> Option<Self>
Resolves the artifacts needed to instantiate a PetriVmBuilder.
Returns None if the supplied configuration is not supported on this platform.
Auto Trait Implementations§
impl<T> Freeze for PetriVmArtifacts<T>where
T: Freeze,
impl<T> RefUnwindSafe for PetriVmArtifacts<T>where
T: RefUnwindSafe,
impl<T> Send for PetriVmArtifacts<T>where
T: Send,
impl<T> Sync for PetriVmArtifacts<T>where
T: Sync,
impl<T> Unpin for PetriVmArtifacts<T>where
T: Unpin,
impl<T> UnwindSafe for PetriVmArtifacts<T>where
T: UnwindSafe,
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