Struct teaclave_proto::teaclave_management_service_proto::teaclave_management_client::TeaclaveManagementClient
source · [−]pub struct TeaclaveManagementClient<T> { /* private fields */ }
Implementations
sourceimpl<T> TeaclaveManagementClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> TeaclaveManagementClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> TeaclaveManagementClient<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,
sourcepub fn send_gzip(self) -> Self
pub fn send_gzip(self) -> Self
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_gzip(self) -> Self
pub fn accept_gzip(self) -> Self
Enable decompressing responses with gzip
.
pub async fn register_input_file(
&mut self,
request: impl IntoRequest<RegisterInputFileRequest>
) -> Result<Response<RegisterInputFileResponse>, Status>
pub async fn register_output_file(
&mut self,
request: impl IntoRequest<RegisterOutputFileRequest>
) -> Result<Response<RegisterOutputFileResponse>, Status>
pub async fn update_input_file(
&mut self,
request: impl IntoRequest<UpdateInputFileRequest>
) -> Result<Response<UpdateInputFileResponse>, Status>
pub async fn update_output_file(
&mut self,
request: impl IntoRequest<UpdateOutputFileRequest>
) -> Result<Response<UpdateOutputFileResponse>, Status>
pub async fn register_fusion_output(
&mut self,
request: impl IntoRequest<RegisterFusionOutputRequest>
) -> Result<Response<RegisterFusionOutputResponse>, Status>
pub async fn register_input_from_output(
&mut self,
request: impl IntoRequest<RegisterInputFromOutputRequest>
) -> Result<Response<RegisterInputFromOutputResponse>, Status>
pub async fn get_output_file(
&mut self,
request: impl IntoRequest<GetOutputFileRequest>
) -> Result<Response<GetOutputFileResponse>, Status>
pub async fn get_input_file(
&mut self,
request: impl IntoRequest<GetInputFileRequest>
) -> Result<Response<GetInputFileResponse>, Status>
pub async fn register_function(
&mut self,
request: impl IntoRequest<RegisterFunctionRequest>
) -> Result<Response<RegisterFunctionResponse>, Status>
pub async fn update_function(
&mut self,
request: impl IntoRequest<UpdateFunctionRequest>
) -> Result<Response<UpdateFunctionResponse>, Status>
pub async fn get_function(
&mut self,
request: impl IntoRequest<GetFunctionRequest>
) -> Result<Response<GetFunctionResponse>, Status>
pub async fn get_function_usage_stats(
&mut self,
request: impl IntoRequest<GetFunctionUsageStatsRequest>
) -> Result<Response<GetFunctionUsageStatsResponse>, Status>
pub async fn delete_function(
&mut self,
request: impl IntoRequest<DeleteFunctionRequest>
) -> Result<Response<()>, Status>
pub async fn disable_function(
&mut self,
request: impl IntoRequest<DisableFunctionRequest>
) -> Result<Response<()>, Status>
pub async fn list_functions(
&mut self,
request: impl IntoRequest<ListFunctionsRequest>
) -> Result<Response<ListFunctionsResponse>, Status>
pub async fn create_task(
&mut self,
request: impl IntoRequest<CreateTaskRequest>
) -> Result<Response<CreateTaskResponse>, Status>
pub async fn get_task(
&mut self,
request: impl IntoRequest<GetTaskRequest>
) -> Result<Response<GetTaskResponse>, Status>
pub async fn assign_data(
&mut self,
request: impl IntoRequest<AssignDataRequest>
) -> Result<Response<()>, Status>
pub async fn approve_task(
&mut self,
request: impl IntoRequest<ApproveTaskRequest>
) -> Result<Response<()>, Status>
pub async fn invoke_task(
&mut self,
request: impl IntoRequest<InvokeTaskRequest>
) -> Result<Response<()>, Status>
pub async fn cancel_task(
&mut self,
request: impl IntoRequest<CancelTaskRequest>
) -> Result<Response<()>, Status>
pub async fn save_logs(
&mut self,
request: impl IntoRequest<SaveLogsRequest>
) -> Result<Response<()>, Status>
pub async fn query_audit_logs(
&mut self,
request: impl IntoRequest<QueryAuditLogsRequest>
) -> Result<Response<QueryAuditLogsResponse>, Status>
Trait Implementations
sourceimpl<T: Clone> Clone for TeaclaveManagementClient<T>
impl<T: Clone> Clone for TeaclaveManagementClient<T>
sourcefn clone(&self) -> TeaclaveManagementClient<T>
fn clone(&self) -> TeaclaveManagementClient<T>
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for TeaclaveManagementClient<T>
impl<T: Debug> Debug for TeaclaveManagementClient<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for TeaclaveManagementClient<T>where
T: RefUnwindSafe,
impl<T> Send for TeaclaveManagementClient<T>where
T: Send,
impl<T> Sync for TeaclaveManagementClient<T>where
T: Sync,
impl<T> Unpin for TeaclaveManagementClient<T>where
T: Unpin,
impl<T> UnwindSafe for TeaclaveManagementClient<T>where
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more