Struct simics_test::TestEnvSpec
source · pub struct TestEnvSpec {
pub(crate) cargo_target_tmpdir: String,
pub(crate) name: String,
pub(crate) packages: HashSet<ProjectPackage>,
pub(crate) nonrepo_packages: HashSet<ProjectPackage>,
pub(crate) files: Vec<(String, Vec<u8>)>,
pub(crate) directories: Vec<PathBuf>,
pub(crate) simics_home: Option<PathBuf>,
pub(crate) package_repo: Option<String>,
pub(crate) install_all: bool,
pub(crate) package_crates: Vec<PathBuf>,
pub(crate) build_simics_version: Option<String>,
pub(crate) run_simics_version: Option<String>,
}
Expand description
A specification for a test environment
Fields§
§cargo_target_tmpdir: String
§name: String
§packages: HashSet<ProjectPackage>
§nonrepo_packages: HashSet<ProjectPackage>
§files: Vec<(String, Vec<u8>)>
§directories: Vec<PathBuf>
§simics_home: Option<PathBuf>
§package_repo: Option<String>
§install_all: bool
§package_crates: Vec<PathBuf>
§build_simics_version: Option<String>
§run_simics_version: Option<String>
Implementations§
source§impl TestEnvSpec
impl TestEnvSpec
sourcepub fn builder() -> TestEnvSpecBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> TestEnvSpecBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building TestEnvSpec
.
On the builder, call .cargo_target_tmpdir(...)
, .name(...)
, .packages(...)
(optional), .nonrepo_packages(...)
(optional), .files(...)
(optional), .directories(...)
(optional), .simics_home(...)
(optional), .package_repo(...)
(optional), .install_all(...)
(optional), .package_crates(...)
(optional), .build_simics_version(...)
(optional), .run_simics_version(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of TestEnvSpec
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestEnvSpec
impl RefUnwindSafe for TestEnvSpec
impl Send for TestEnvSpec
impl Sync for TestEnvSpec
impl Unpin for TestEnvSpec
impl UnwindSafe for TestEnvSpec
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more