pub struct Simulation {
pub distro: Option<String>,
pub kernel: Option<String>,
pub runner: Option<Runner>,
pub image: Option<String>,
}Expand description
What test/run simulate. distro excludes kernel; image needs a
kernel floor.
Fields§
§distro: Option<String>§kernel: Option<String>§runner: Option<Runner>§image: Option<String>Implementations§
Source§impl Simulation
impl Simulation
Sourcepub fn target(&self) -> Result<Option<Target>, String>
pub fn target(&self) -> Result<Option<Target>, String>
The kernel target (with a preset’s backports), if a floor was given.
Sourcepub fn plan(&self) -> Result<(Plan, Option<Target>), String>
pub fn plan(&self) -> Result<(Plan, Option<Target>), String>
Applies kernel_abi_tools::Runner::choose: a requested runner wins; a
known image (--image, or the preset’s) means the container, otherwise
the local filter. A preset’s image is only a default, so --runner local ignores it.
Sourcepub fn variables(&self, ceiling: Version) -> [(&'static str, Option<String>); 5]
pub fn variables(&self, ceiling: Version) -> [(&'static str, Option<String>); 5]
Passes the selection to the helper.
The libc-runner variables; None means unset.
pub fn set_environment(&self, cmd: &mut Command, ceiling: Version)
Trait Implementations§
Source§impl Clone for Simulation
impl Clone for Simulation
Source§impl Debug for Simulation
impl Debug for Simulation
Source§impl Default for Simulation
impl Default for Simulation
impl Eq for Simulation
Source§impl PartialEq for Simulation
impl PartialEq for Simulation
impl StructuralPartialEq for Simulation
Auto Trait Implementations§
impl Freeze for Simulation
impl RefUnwindSafe for Simulation
impl Send for Simulation
impl Sync for Simulation
impl Unpin for Simulation
impl UnsafeUnpin for Simulation
impl UnwindSafe for Simulation
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