Struct teaclave_types::Task
source · [−]pub struct Task<S: StateTag> { /* private fields */ }
Implementations
sourceimpl Task<Create>
impl Task<Create>
pub fn new(
requester: UserID,
req_executor: Executor,
req_func_args: FunctionArguments,
req_input_owners: impl Into<TaskFileOwners>,
req_output_owners: impl Into<TaskFileOwners>,
function: Function
) -> Result<Self>
sourceimpl Task<Assign>
impl Task<Assign>
pub fn new(ts: TaskState) -> Result<Self>
pub fn assign_input(
&mut self,
requester: &UserID,
fname: &str,
file: TeaclaveInputFile
) -> Result<()>
pub fn assign_output(
&mut self,
requester: &UserID,
fname: &str,
file: TeaclaveOutputFile
) -> Result<()>
sourceimpl Task<Stage>
impl Task<Stage>
pub fn new(ts: TaskState) -> Result<Self>
pub fn stage_for_running(
&mut self,
requester: &UserID,
function: Function
) -> Result<StagedTask>
sourceimpl Task<Finish>
impl Task<Finish>
pub fn new(ts: TaskState) -> Result<Self>
pub fn update_output_cmac(
&mut self,
fname: &str,
auth_tag: &FileAuthTag
) -> Result<&TeaclaveOutputFile>
pub fn update_result(&mut self, result: TaskResult) -> Result<()>
Trait Implementations
sourceimpl<'de, S: StateTag> Deserialize<'de> for Task<S>where
S: Deserialize<'de>,
impl<'de, S: StateTag> Deserialize<'de> for Task<S>where
S: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<S> RefUnwindSafe for Task<S>where
S: RefUnwindSafe,
impl<S> Send for Task<S>where
S: Send,
impl<S> Sync for Task<S>where
S: Sync,
impl<S> Unpin for Task<S>where
S: Unpin,
impl<S> UnwindSafe for Task<S>where
S: 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