pub struct DeviceTest { /* private fields */ }Implementations§
Source§impl DeviceTest
impl DeviceTest
Sourcepub fn start(&mut self)
pub fn start(&mut self)
Build/flash/run the on-target test. Output is inherited so device logs interleave with the host’s. Must be called from within the trial’s runtime; panics if started twice.
Sourcepub async fn failure_context(&mut self) -> Option<String>
pub async fn failure_context(&mut self) -> Option<String>
If the device side has already failed (spawn error, missing crate dir, early exit), return its error without waiting. Context for host-side failures: a scenario that times out because the device never ran should say so, not just “deadline elapsed”.
Sourcepub async fn verdict(&mut self) -> Result<(), Failed>
pub async fn verdict(&mut self) -> Result<(), Failed>
The device-side result (semihosting exit code via the runner). Idempotent: awaits the child on first call, cached afterwards, so a scenario may consult it mid-body and the suite’s trailing check is still valid. Never started => failure, not a pass.
Auto Trait Implementations§
impl Freeze for DeviceTest
impl RefUnwindSafe for DeviceTest
impl Send for DeviceTest
impl Sync for DeviceTest
impl Unpin for DeviceTest
impl UnsafeUnpin for DeviceTest
impl UnwindSafe for DeviceTest
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