Struct googapis::google::example::showcase::v1::testing_client::TestingClient [−][src]
pub struct TestingClient<T> { /* fields omitted */ }
Expand description
A service to facilitate running discrete sets of tests against Showcase.
Implementations
impl<T> TestingClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> TestingClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> TestingClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn create_session(
&mut self,
request: impl IntoRequest<CreateSessionRequest>
) -> Result<Response<Session>, Status>
pub async fn create_session(
&mut self,
request: impl IntoRequest<CreateSessionRequest>
) -> Result<Response<Session>, Status>
Creates a new testing session.
pub async fn get_session(
&mut self,
request: impl IntoRequest<GetSessionRequest>
) -> Result<Response<Session>, Status>
pub async fn get_session(
&mut self,
request: impl IntoRequest<GetSessionRequest>
) -> Result<Response<Session>, Status>
Gets a testing session.
pub async fn list_sessions(
&mut self,
request: impl IntoRequest<ListSessionsRequest>
) -> Result<Response<ListSessionsResponse>, Status>
pub async fn list_sessions(
&mut self,
request: impl IntoRequest<ListSessionsRequest>
) -> Result<Response<ListSessionsResponse>, Status>
Lists the current test sessions.
pub async fn delete_session(
&mut self,
request: impl IntoRequest<DeleteSessionRequest>
) -> Result<Response<()>, Status>
pub async fn delete_session(
&mut self,
request: impl IntoRequest<DeleteSessionRequest>
) -> Result<Response<()>, Status>
Delete a test session.
pub async fn report_session(
&mut self,
request: impl IntoRequest<ReportSessionRequest>
) -> Result<Response<ReportSessionResponse>, Status>
pub async fn report_session(
&mut self,
request: impl IntoRequest<ReportSessionRequest>
) -> Result<Response<ReportSessionResponse>, Status>
Report on the status of a session. This generates a report detailing which tests have been completed, and an overall rollup.
pub async fn list_tests(
&mut self,
request: impl IntoRequest<ListTestsRequest>
) -> Result<Response<ListTestsResponse>, Status>
pub async fn list_tests(
&mut self,
request: impl IntoRequest<ListTestsRequest>
) -> Result<Response<ListTestsResponse>, Status>
List the tests of a sessesion.
pub async fn delete_test(
&mut self,
request: impl IntoRequest<DeleteTestRequest>
) -> Result<Response<()>, Status>
pub async fn delete_test(
&mut self,
request: impl IntoRequest<DeleteTestRequest>
) -> Result<Response<()>, Status>
Explicitly decline to implement a test.
This removes the test from subsequent ListTests
calls, and
attempting to do the test will error.
This method will error if attempting to delete a required test.
pub async fn verify_test(
&mut self,
request: impl IntoRequest<VerifyTestRequest>
) -> Result<Response<VerifyTestResponse>, Status>
pub async fn verify_test(
&mut self,
request: impl IntoRequest<VerifyTestRequest>
) -> Result<Response<VerifyTestResponse>, Status>
Register a response to a test.
In cases where a test involves registering a final answer at the end of the test, this method provides the means to do so.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for TestingClient<T> where
T: RefUnwindSafe,
impl<T> Send for TestingClient<T> where
T: Send,
impl<T> Sync for TestingClient<T> where
T: Sync,
impl<T> Unpin for TestingClient<T> where
T: Unpin,
impl<T> UnwindSafe for TestingClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more