Struct test_runners_lib::elf::Component
source · pub struct Component {
pub url: String,
pub name: String,
pub binary: String,
pub args: Vec<String>,
pub environ: Option<Vec<String>>,
pub ns: ComponentNamespace,
pub job: Job,
pub use_direct_vdso: bool,
pub options: ProcessOptions,
/* private fields */
}
Expand description
All information about this test ELF component.
Fields§
§url: String
Component URL
name: String
Component name
binary: String
Binary path for this component relative to /pkg in ‘ns’
args: Vec<String>
Arguments for this test.
environ: Option<Vec<String>>
Environment variables for this test.
ns: ComponentNamespace
Namespace to pass to test process.
job: Job
Parent job in which all test processes should be executed.
use_direct_vdso: bool
Use direct vDSO for this test.
options: ProcessOptions
Options to create process with.
Implementations§
source§impl Component
impl Component
sourcepub async fn new<F>(
start_info: ComponentStartInfo,
validate_args: F
) -> Result<(Self, ServerEnd<DirectoryMarker>, ServerEnd<DirectoryMarker>), ComponentError>where
F: 'static + Fn(&Vec<String>) -> Result<(), ArgumentError>,
pub async fn new<F>( start_info: ComponentStartInfo, validate_args: F ) -> Result<(Self, ServerEnd<DirectoryMarker>, ServerEnd<DirectoryMarker>), ComponentError>where F: 'static + Fn(&Vec<String>) -> Result<(), ArgumentError>,
Create new object using ComponentStartInfo
.
On success returns self and outgoing_dir from ComponentStartInfo
.
pub fn executable_vmo(&self) -> Result<Vmo, ComponentError>
pub fn loader_service(&self, loader: ServerEnd<LoaderMarker>)
pub async fn create_for_tests(args: BuilderArgs) -> Result<Self, ComponentError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl !UnwindSafe for Component
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