pub struct DriverUnderTest<'a, D> { /* private fields */ }Expand description
This manages the driver under test’s lifecycle.
Implementations§
Source§impl<'a, D: Driver> DriverUnderTest<'a, D>
impl<'a, D: Driver> DriverUnderTest<'a, D>
Sourcepub fn driver_outgoing(&self) -> &Incoming
pub fn driver_outgoing(&self) -> &Incoming
Allows the test to connect to capabilities that are provided by the driver through its outgoing namespace.
Sourcepub fn get_driver(&self) -> Option<&D>
pub fn get_driver(&self) -> Option<&D>
Returns a reference to the driver instance.
Sourcepub fn dispatcher(&self) -> WeakDispatcher
pub fn dispatcher(&self) -> WeakDispatcher
Gets the driver’s initial dispatcher.
Sourcepub fn node(&self) -> NodeHandle
pub fn node(&self) -> NodeHandle
Gets the TestNode that the driver-under-test is bound to.
Sourcepub fn harness(&self) -> &TestHarness<D>
pub fn harness(&self) -> &TestHarness<D>
Get a reference to the harness that started the driver.
Sourcepub async fn stop_driver(self)
pub async fn stop_driver(self)
Stop the driver.
Trait Implementations§
Auto Trait Implementations§
impl<'a, D> Freeze for DriverUnderTest<'a, D>
impl<'a, D> !RefUnwindSafe for DriverUnderTest<'a, D>
impl<'a, D> Send for DriverUnderTest<'a, D>where
D: Send,
impl<'a, D> !Sync for DriverUnderTest<'a, D>
impl<'a, D> Unpin for DriverUnderTest<'a, D>where
D: Unpin,
impl<'a, D> UnsafeUnpin for DriverUnderTest<'a, D>
impl<'a, D> !UnwindSafe for DriverUnderTest<'a, D>
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
Source§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to SelfSource§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