[][src]Struct teaclave_client_sdk::FrontendClient

pub struct FrontendClient { /* fields omitted */ }

Implementations

impl FrontendClient[src]

pub fn new(api_client: TeaclaveFrontendClient) -> Self[src]

pub fn set_credential(&mut self, id: &str, token: &str)[src]

pub fn register_function_serialized(
    &mut self,
    serialized_request: &str
) -> Result<String>
[src]

pub fn register_function_with_request(
    &mut self,
    request: RegisterFunctionRequest
) -> Result<RegisterFunctionResponse>
[src]

pub fn register_function(
    &mut self,
    name: &str,
    description: &str,
    executor_type: &str,
    payload: Option<&[u8]>,
    arguments: Option<&[&str]>,
    inputs: Option<Vec<FunctionInput>>,
    outputs: Option<Vec<FunctionOutput>>
) -> Result<String>
[src]

pub fn get_function_with_request(
    &mut self,
    request: GetFunctionRequest
) -> Result<GetFunctionResponse>
[src]

pub fn get_function_serialized(
    &mut self,
    serialized_request: &str
) -> Result<String>
[src]

pub fn get_function(&mut self, function_id: &str) -> Result<Function>[src]

pub fn register_input_file_with_request(
    &mut self,
    request: RegisterInputFileRequest
) -> Result<RegisterInputFileResponse>
[src]

pub fn register_input_file_serialized(
    &mut self,
    serialized_request: &str
) -> Result<String>
[src]

pub fn register_input_file(
    &mut self,
    url: &str,
    cmac: &[u8],
    file_crypto: FileCrypto
) -> Result<String>
[src]

pub fn register_output_file_with_request(
    &mut self,
    request: RegisterOutputFileRequest
) -> Result<RegisterOutputFileResponse>
[src]

pub fn register_output_file_serialized(
    &mut self,
    serialized_request: &str
) -> Result<String>
[src]

pub fn register_output_file(
    &mut self,
    url: &str,
    file_crypto: FileCrypto
) -> Result<String>
[src]

pub fn create_task_serialized(
    &mut self,
    serialized_request: &str
) -> Result<String>
[src]

pub fn create_task_with_request(
    &mut self,
    request: CreateTaskRequest
) -> Result<CreateTaskResponse>
[src]

pub fn create_task(
    &mut self,
    function_id: &str,
    function_arguments: Option<HashMap<String, String>>,
    executor: &str,
    inputs_ownership: Option<HashMap<String, Vec<String>>>,
    outputs_ownership: Option<HashMap<String, Vec<String>>>
) -> Result<String>
[src]

pub fn assign_data_with_request(
    &mut self,
    request: AssignDataRequest
) -> Result<AssignDataResponse>
[src]

pub fn assign_data_serialized(
    &mut self,
    serialized_request: &str
) -> Result<String>
[src]

pub fn assign_data(
    &mut self,
    task_id: &str,
    inputs: Option<HashMap<String, String>>,
    outputs: Option<HashMap<String, String>>
) -> Result<()>
[src]

pub fn approve_task_with_request(
    &mut self,
    request: ApproveTaskRequest
) -> Result<ApproveTaskResponse>
[src]

pub fn approve_task(&mut self, task_id: &str) -> Result<()>[src]

pub fn approve_task_serialized(
    &mut self,
    serialized_request: &str
) -> Result<String>
[src]

pub fn invoke_task_with_request(
    &mut self,
    request: InvokeTaskRequest
) -> Result<InvokeTaskResponse>
[src]

pub fn invoke_task_serialized(
    &mut self,
    serialized_request: &str
) -> Result<String>
[src]

pub fn invoke_task(&mut self, task_id: &str) -> Result<()>[src]

pub fn get_task_with_request(
    &mut self,
    request: GetTaskRequest
) -> Result<GetTaskResponse>
[src]

pub fn get_task_serialized(
    &mut self,
    serialized_request: &str
) -> Result<String>
[src]

pub fn get_task_result(&mut self, task_id: &str) -> Result<Vec<u8>>[src]

Auto Trait Implementations

impl !RefUnwindSafe for FrontendClient

impl Send for FrontendClient

impl Sync for FrontendClient

impl Unpin for FrontendClient

impl !UnwindSafe for FrontendClient

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,