pub struct LocalAsyncComputeServiceClient<C> { /* private fields */ }Trait Implementations§
Source§impl<C> AsyncService<C> for LocalAsyncComputeServiceClient<C>
impl<C> AsyncService<C> for LocalAsyncComputeServiceClient<C>
Source§fn new(
client: C,
runtime: &Arc<ConjureRuntime>,
) -> LocalAsyncComputeServiceClient<C>
fn new( client: C, runtime: &Arc<ConjureRuntime>, ) -> LocalAsyncComputeServiceClient<C>
Creates a new service wrapping an async HTTP client.
Source§impl<C> Clone for LocalAsyncComputeServiceClient<C>where
C: Clone,
impl<C> Clone for LocalAsyncComputeServiceClient<C>where
C: Clone,
Source§fn clone(&self) -> LocalAsyncComputeServiceClient<C>
fn clone(&self) -> LocalAsyncComputeServiceClient<C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C> Debug for LocalAsyncComputeServiceClient<C>where
C: Debug,
impl<C> Debug for LocalAsyncComputeServiceClient<C>where
C: Debug,
Source§impl<I, __C> LocalAsyncComputeService<I> for LocalAsyncComputeServiceClient<__C>
impl<I, __C> LocalAsyncComputeService<I> for LocalAsyncComputeServiceClient<__C>
Source§async fn compute(
&self,
auth_: &BearerToken,
request: &ComputeNodeRequest,
) -> Result<ComputeNodeResponse, Error>
async fn compute( &self, auth_: &BearerToken, request: &ComputeNodeRequest, ) -> Result<ComputeNodeResponse, Error>
Computes the output of the compute graph specified by a ComputeNodeRequest.
Source§async fn parameterized_compute(
&self,
auth_: &BearerToken,
request: &ParameterizedComputeNodeRequest,
) -> Result<ParameterizedComputeNodeResponse, Error>
async fn parameterized_compute( &self, auth_: &BearerToken, request: &ParameterizedComputeNodeRequest, ) -> Result<ParameterizedComputeNodeResponse, Error>
Computes the output of the compute graph specified by a ParameterizedComputeNodeRequest. A parameterized
compute request supports multiple values for a single variable, supplied by the ParameterizedContext.
Results are returned in the same order of the request.
Source§async fn compute_units(
&self,
auth_: &BearerToken,
request: &ComputeUnitsRequest,
) -> Result<ComputeUnitResult, Error>
async fn compute_units( &self, auth_: &BearerToken, request: &ComputeUnitsRequest, ) -> Result<ComputeUnitResult, Error>
Returns the resulting unit for the output of a compute graph. If the resulting unit is equivalent to exactly
one existing unit in the system, it will be returned (for example, a series in Coulombs divided by a series
in Volts will return an output of Farads). If the output does not have units (for example, a range output,)
the unit result will return noUnitAvailable, and if the computation was not successful, corresponding errors
are returned.
Source§async fn batch_compute_with_units(
&self,
auth_: &BearerToken,
request: &BatchComputeWithUnitsRequest,
) -> Result<BatchComputeWithUnitsResponse, Error>
async fn batch_compute_with_units( &self, auth_: &BearerToken, request: &BatchComputeWithUnitsRequest, ) -> Result<BatchComputeWithUnitsResponse, Error>
Computes the output of compute graphs specified by BatchComputeNodeRequest. Results are returned in the same
order as the request.
Source§async fn batch_compute_units(
&self,
auth_: &BearerToken,
request: &BatchComputeUnitsRequest,
) -> Result<BatchComputeUnitResult, Error>
async fn batch_compute_units( &self, auth_: &BearerToken, request: &BatchComputeUnitsRequest, ) -> Result<BatchComputeUnitResult, Error>
Same as computeUnits, however this endpoint functions on a batch of requests for wire efficiency purposes. An
extra note is that this method will serialize underlying conjure errors into the BatchComputeUnitResult type,
meaning callers are required to check for errors explicitly (rather than relying on exceptions being thrown).
Source§async fn compute_with_units(
&self,
auth_: &BearerToken,
request: &ComputeWithUnitsRequest,
) -> Result<ComputeWithUnitsResponse, Error>
async fn compute_with_units( &self, auth_: &BearerToken, request: &ComputeWithUnitsRequest, ) -> Result<ComputeWithUnitsResponse, Error>
Computes the output of the compute graph specified by a ComputeNodeRequest, as well as providing the resulting
unit for the output of a compute graph. If the resulting unit is equivalent to exactly one existing unit in the
system, it will be returned (for example, a series in Coulombs divided by a series in Volts will return an
output of Farads). If the output does not have units (for example, a range output,) the unit result will return
noUnitAvailable, and if the computation was not successful, corresponding errors are returned.
Source§async fn batch_kill_requests(
&self,
auth_: &BearerToken,
request: &BatchKillRequestsRequest,
) -> Result<(), Error>
async fn batch_kill_requests( &self, auth_: &BearerToken, request: &BatchKillRequestsRequest, ) -> Result<(), Error>
Best-effort cancellation of active compute requests. Each ID should be the request ID that
the client originally passed when starting the request. A single request may correspond to
one or more underlying operations, all of which will be cancelled.
Source§async fn batch_get_request_progress(
&self,
auth_: &BearerToken,
request: &BatchGetRequestProgressRequest,
) -> Result<BatchGetRequestProgressResponse, Error>
async fn batch_get_request_progress( &self, auth_: &BearerToken, request: &BatchGetRequestProgressRequest, ) -> Result<BatchGetRequestProgressResponse, Error>
Returns a point-in-time snapshot of progress for the given active compute requests. Each
ID should be the request ID that the client originally passed when starting the request.
Intended to be polled (roughly once per second) for requests that have been running
longer than the slow-query threshold. Read more
Source§async fn get_quota_usage(
&self,
auth_: &BearerToken,
) -> Result<GetQuotaUsageResponse, Error>
async fn get_quota_usage( &self, auth_: &BearerToken, ) -> Result<GetQuotaUsageResponse, Error>
Returns the calling user’s compute quota usage for their current organization, one entry
per quota window. Returns no intervals when quotas are not enabled for the organization.
Auto Trait Implementations§
impl<C> !RefUnwindSafe for LocalAsyncComputeServiceClient<C>
impl<C> !UnwindSafe for LocalAsyncComputeServiceClient<C>
impl<C> Freeze for LocalAsyncComputeServiceClient<C>where
C: Freeze,
impl<C> Send for LocalAsyncComputeServiceClient<C>where
C: Send,
impl<C> Sync for LocalAsyncComputeServiceClient<C>where
C: Sync,
impl<C> Unpin for LocalAsyncComputeServiceClient<C>where
C: Unpin,
impl<C> UnsafeUnpin for LocalAsyncComputeServiceClient<C>where
C: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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