Skip to main content

TestmanagerClient

Struct TestmanagerClient 

Source
pub struct TestmanagerClient<S1, S2 = S1> { /* private fields */ }

Implementations§

Source§

impl<S1, S2> TestmanagerClient<S1, S2>

Source

pub async fn connect( session_stream: S1, control_stream: S2, ) -> Result<Self, DtxError>

Source

pub async fn initiate_session( &mut self, session_identifier: Bytes, capabilities: Bytes, ) -> Result<DtxMessage, DtxError>

Source

pub async fn initiate_control_session( &mut self, capabilities: Bytes, ) -> Result<DtxMessage, DtxError>

Source

pub async fn initiate_session_with_capabilities( &mut self, session_identifier: Uuid, capabilities: XctCapabilities, ) -> Result<DtxMessage, DtxError>

Source

pub async fn initiate_control_session_with_capabilities( &mut self, capabilities: XctCapabilities, ) -> Result<DtxMessage, DtxError>

Source

pub async fn authorize_test_session_with_process_id( &mut self, pid: u64, ) -> Result<bool, DtxError>

Source

pub async fn request_driver_channel(&mut self) -> Result<i32, DtxError>

Source

pub async fn await_driver_channel_request(&mut self) -> Result<i32, DtxError>

Source

pub async fn start_executing_test_plan(&mut self) -> Result<(), DtxError>

Source

pub async fn recv_startup_event(&mut self) -> Result<StartupEvent, DtxError>

Source

pub async fn recv_execution_event( &mut self, ) -> Result<TestExecutionEvent, DtxError>

Source

pub async fn respond_test_runner_ready( &mut self, msg: &DtxMessage, configuration: Bytes, ) -> Result<(), DtxError>

Source

pub async fn respond_test_runner_ready_with_configuration( &mut self, msg: &DtxMessage, configuration: XcTestConfiguration, ) -> Result<(), DtxError>

Source

pub async fn complete_startup_with_configuration( &mut self, configuration: XcTestConfiguration, ) -> Result<StartupSummary, DtxError>

Source

pub async fn authorize_and_start_test_plan_with_configuration( &mut self, pid: u64, configuration: XcTestConfiguration, ) -> Result<StartupSummary, DtxError>

Source§

impl<S> TestmanagerClient<S, S>
where S: AsyncRead + AsyncWrite + Unpin + Send,

Source

pub fn from_session_connection_for_test( session_stream: S, session_channel: i32, ) -> Self

Test-only constructor: single session connection, no control connection.

Source

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>
where S1: Freeze, S2: Freeze,

§

impl<S1, S2> RefUnwindSafe for TestmanagerClient<S1, S2>

§

impl<S1, S2> Send for TestmanagerClient<S1, S2>
where S1: Send, S2: Send,

§

impl<S1, S2> Sync for TestmanagerClient<S1, S2>
where S1: Sync, S2: Sync,

§

impl<S1, S2> Unpin for TestmanagerClient<S1, S2>
where S1: Unpin, S2: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more