Struct specifications::driving::DriverServiceClient
source · pub struct DriverServiceClient { /* private fields */ }
Expand description
The DriverServiceClient can connect to a remote server implementing the DriverService protocol.
Implementations§
source§impl DriverServiceClient
impl DriverServiceClient
sourcepub async fn create_session(
&mut self,
request: impl IntoRequest<CreateSessionRequest>,
) -> Result<Response<CreateSessionReply>, Status>
pub async fn create_session( &mut self, request: impl IntoRequest<CreateSessionRequest>, ) -> Result<Response<CreateSessionReply>, Status>
sourcepub async fn check(
&mut self,
request: impl IntoRequest<CheckRequest>,
) -> Result<Response<CheckReply>, Status>
pub async fn check( &mut self, request: impl IntoRequest<CheckRequest>, ) -> Result<Response<CheckReply>, Status>
Send a request to validate a workflow to the connected endpoint.
§Arguments
request
: TheCheckRequest
to send to the endpoint.
§Returns
A 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 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>
Trait Implementations§
source§impl Clone for DriverServiceClient
impl Clone for DriverServiceClient
source§fn clone(&self) -> DriverServiceClient
fn clone(&self) -> DriverServiceClient
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 DriverServiceClient
impl !RefUnwindSafe for DriverServiceClient
impl Send for DriverServiceClient
impl Sync for DriverServiceClient
impl Unpin for DriverServiceClient
impl !UnwindSafe for DriverServiceClient
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