[][src]Trait teaclave_proto::teaclave_frontend_service_proto::TeaclaveFrontend

pub trait TeaclaveFrontend {
    fn register_input_file(
        &self,
        request: Request<RegisterInputFileRequest>
    ) -> TeaclaveServiceResponseResult<RegisterInputFileResponse>;
fn register_output_file(
        &self,
        request: Request<RegisterOutputFileRequest>
    ) -> TeaclaveServiceResponseResult<RegisterOutputFileResponse>;
fn update_input_file(
        &self,
        request: Request<UpdateInputFileRequest>
    ) -> TeaclaveServiceResponseResult<UpdateInputFileResponse>;
fn update_output_file(
        &self,
        request: Request<UpdateOutputFileRequest>
    ) -> TeaclaveServiceResponseResult<UpdateOutputFileResponse>;
fn register_fusion_output(
        &self,
        request: Request<RegisterFusionOutputRequest>
    ) -> TeaclaveServiceResponseResult<RegisterFusionOutputResponse>;
fn register_input_from_output(
        &self,
        request: Request<RegisterInputFromOutputRequest>
    ) -> TeaclaveServiceResponseResult<RegisterInputFromOutputResponse>;
fn get_output_file(
        &self,
        request: Request<GetOutputFileRequest>
    ) -> TeaclaveServiceResponseResult<GetOutputFileResponse>;
fn get_input_file(
        &self,
        request: Request<GetInputFileRequest>
    ) -> TeaclaveServiceResponseResult<GetInputFileResponse>;
fn register_function(
        &self,
        request: Request<RegisterFunctionRequest>
    ) -> TeaclaveServiceResponseResult<RegisterFunctionResponse>;
fn get_function(
        &self,
        request: Request<GetFunctionRequest>
    ) -> TeaclaveServiceResponseResult<GetFunctionResponse>;
fn create_task(
        &self,
        request: Request<CreateTaskRequest>
    ) -> TeaclaveServiceResponseResult<CreateTaskResponse>;
fn get_task(
        &self,
        request: Request<GetTaskRequest>
    ) -> TeaclaveServiceResponseResult<GetTaskResponse>;
fn assign_data(
        &self,
        request: Request<AssignDataRequest>
    ) -> TeaclaveServiceResponseResult<AssignDataResponse>;
fn approve_task(
        &self,
        request: Request<ApproveTaskRequest>
    ) -> TeaclaveServiceResponseResult<ApproveTaskResponse>;
fn invoke_task(
        &self,
        request: Request<InvokeTaskRequest>
    ) -> TeaclaveServiceResponseResult<InvokeTaskResponse>; fn dispatch(
        &self,
        request: Request<TeaclaveFrontendRequest>
    ) -> TeaclaveServiceResponseResult<TeaclaveFrontendResponse> { ... } }

Required methods

fn register_input_file(
    &self,
    request: Request<RegisterInputFileRequest>
) -> TeaclaveServiceResponseResult<RegisterInputFileResponse>

fn register_output_file(
    &self,
    request: Request<RegisterOutputFileRequest>
) -> TeaclaveServiceResponseResult<RegisterOutputFileResponse>

fn update_input_file(
    &self,
    request: Request<UpdateInputFileRequest>
) -> TeaclaveServiceResponseResult<UpdateInputFileResponse>

fn update_output_file(
    &self,
    request: Request<UpdateOutputFileRequest>
) -> TeaclaveServiceResponseResult<UpdateOutputFileResponse>

fn register_fusion_output(
    &self,
    request: Request<RegisterFusionOutputRequest>
) -> TeaclaveServiceResponseResult<RegisterFusionOutputResponse>

fn register_input_from_output(
    &self,
    request: Request<RegisterInputFromOutputRequest>
) -> TeaclaveServiceResponseResult<RegisterInputFromOutputResponse>

fn get_output_file(
    &self,
    request: Request<GetOutputFileRequest>
) -> TeaclaveServiceResponseResult<GetOutputFileResponse>

fn get_input_file(
    &self,
    request: Request<GetInputFileRequest>
) -> TeaclaveServiceResponseResult<GetInputFileResponse>

fn register_function(
    &self,
    request: Request<RegisterFunctionRequest>
) -> TeaclaveServiceResponseResult<RegisterFunctionResponse>

fn get_function(
    &self,
    request: Request<GetFunctionRequest>
) -> TeaclaveServiceResponseResult<GetFunctionResponse>

fn create_task(
    &self,
    request: Request<CreateTaskRequest>
) -> TeaclaveServiceResponseResult<CreateTaskResponse>

fn get_task(
    &self,
    request: Request<GetTaskRequest>
) -> TeaclaveServiceResponseResult<GetTaskResponse>

fn assign_data(
    &self,
    request: Request<AssignDataRequest>
) -> TeaclaveServiceResponseResult<AssignDataResponse>

fn approve_task(
    &self,
    request: Request<ApproveTaskRequest>
) -> TeaclaveServiceResponseResult<ApproveTaskResponse>

fn invoke_task(
    &self,
    request: Request<InvokeTaskRequest>
) -> TeaclaveServiceResponseResult<InvokeTaskResponse>

Loading content...

Provided methods

fn dispatch(
    &self,
    request: Request<TeaclaveFrontendRequest>
) -> TeaclaveServiceResponseResult<TeaclaveFrontendResponse>

Loading content...

Implementors

Loading content...