Struct specifications::working::JobServiceClient
source · pub struct JobServiceClient { /* private fields */ }
Expand description
The JobServiceClient can connect to a remote server implementing the DriverService protocol.
Implementations§
source§impl JobServiceClient
impl JobServiceClient
sourcepub async fn check_workflow(
&mut self,
request: impl IntoRequest<CheckWorkflowRequest>,
) -> Result<Response<CheckReply>, Status>
pub async fn check_workflow( &mut self, request: impl IntoRequest<CheckWorkflowRequest>, ) -> Result<Response<CheckReply>, Status>
Send a request to validate a workflow to the connected endpoint.
§Arguments
request
: TheCheckWorkflowRequest
to send to the endpoint.
§Returns
The CheckReply
the endpoint returns.
§Errors
This function errors if either we failed to send the request or the endpoint itself failed to process it.
sourcepub async fn check_task(
&mut self,
request: impl IntoRequest<CheckTaskRequest>,
) -> Result<Response<CheckReply>, Status>
pub async fn check_task( &mut self, request: impl IntoRequest<CheckTaskRequest>, ) -> Result<Response<CheckReply>, Status>
Send a request to validate a task in a workflow to the connected endpoint.
§Arguments
request
: TheCheckTaskRequest
to send to the endpoint.
§Returns
The CheckReply
the endpoint returns.
§Errors
This function errors if either we failed to send the request or the endpoint itself failed to process it.
sourcepub async fn preprocess(
&mut self,
request: impl IntoRequest<PreprocessRequest>,
) -> Result<Response<PreprocessReply>, Status>
pub async fn preprocess( &mut self, request: impl IntoRequest<PreprocessRequest>, ) -> Result<Response<PreprocessReply>, Status>
sourcepub async fn execute(
&mut self,
request: impl IntoRequest<ExecuteRequest>,
) -> Result<Response<Streaming<ExecuteReply>>, Status>
pub async fn execute( &mut self, request: impl IntoRequest<ExecuteRequest>, ) -> Result<Response<Streaming<ExecuteReply>>, Status>
sourcepub async fn commit(
&mut self,
request: impl IntoRequest<CommitRequest>,
) -> Result<Response<CommitReply>, Status>
pub async fn commit( &mut self, request: impl IntoRequest<CommitRequest>, ) -> Result<Response<CommitReply>, Status>
Trait Implementations§
source§impl Clone for JobServiceClient
impl Clone for JobServiceClient
source§fn clone(&self) -> JobServiceClient
fn clone(&self) -> JobServiceClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !Freeze for JobServiceClient
impl !RefUnwindSafe for JobServiceClient
impl Send for JobServiceClient
impl Sync for JobServiceClient
impl Unpin for JobServiceClient
impl !UnwindSafe for JobServiceClient
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request