pub struct TestmanagerClient<S1, S2 = S1> { /* private fields */ }Implementations§
Source§impl<S1, S2> TestmanagerClient<S1, S2>
impl<S1, S2> TestmanagerClient<S1, S2>
pub async fn connect( session_stream: S1, control_stream: S2, ) -> Result<Self, DtxError>
pub async fn initiate_session( &mut self, session_identifier: Bytes, capabilities: Bytes, ) -> Result<DtxMessage, DtxError>
pub async fn initiate_control_session( &mut self, capabilities: Bytes, ) -> Result<DtxMessage, DtxError>
pub async fn initiate_session_with_capabilities( &mut self, session_identifier: Uuid, capabilities: XctCapabilities, ) -> Result<DtxMessage, DtxError>
pub async fn initiate_control_session_with_capabilities( &mut self, capabilities: XctCapabilities, ) -> Result<DtxMessage, DtxError>
pub async fn request_driver_channel(&mut self) -> Result<i32, DtxError>
pub async fn await_driver_channel_request(&mut self) -> Result<i32, DtxError>
pub async fn start_executing_test_plan(&mut self) -> Result<(), DtxError>
pub async fn recv_startup_event(&mut self) -> Result<StartupEvent, DtxError>
pub async fn respond_test_runner_ready( &mut self, msg: &DtxMessage, configuration: Bytes, ) -> Result<(), DtxError>
pub async fn respond_test_runner_ready_with_configuration( &mut self, msg: &DtxMessage, configuration: XcTestConfiguration, ) -> Result<(), DtxError>
pub async fn complete_startup_with_configuration( &mut self, configuration: XcTestConfiguration, ) -> Result<StartupSummary, DtxError>
Source§impl<S> TestmanagerClient<S, S>
impl<S> TestmanagerClient<S, S>
Sourcepub fn from_session_connection_for_test(
session_stream: S,
session_channel: i32,
) -> Self
pub fn from_session_connection_for_test( session_stream: S, session_channel: i32, ) -> Self
Test-only constructor: single session connection, no control connection.
Sourcepub fn from_connections_for_test(
session_stream: S,
session_channel: i32,
control_stream: S,
control_channel: i32,
) -> Self
pub fn from_connections_for_test( session_stream: S, session_channel: i32, control_stream: S, control_channel: i32, ) -> Self
Test-only constructor: both session and control connections.
Auto Trait Implementations§
impl<S1, S2> Freeze for TestmanagerClient<S1, S2>
impl<S1, S2> RefUnwindSafe for TestmanagerClient<S1, S2>where
S1: RefUnwindSafe,
S2: RefUnwindSafe,
impl<S1, S2> Send for TestmanagerClient<S1, S2>
impl<S1, S2> Sync for TestmanagerClient<S1, S2>
impl<S1, S2> Unpin for TestmanagerClient<S1, S2>
impl<S1, S2> UnsafeUnpin for TestmanagerClient<S1, S2>where
S1: UnsafeUnpin,
S2: UnsafeUnpin,
impl<S1, S2> UnwindSafe for TestmanagerClient<S1, S2>where
S1: UnwindSafe,
S2: UnwindSafe,
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