[][src]Struct teaclave_types::Task

pub struct Task<S: StateTag> { /* fields omitted */ }

Methods

impl Task<Create>[src]

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>
[src]

impl Task<Assign>[src]

pub fn new(ts: TaskState) -> Result<Self>[src]

pub fn assign_input(
    &mut self,
    requester: &UserID,
    fname: &str,
    file: TeaclaveInputFile
) -> Result<()>
[src]

pub fn assign_output(
    &mut self,
    requester: &UserID,
    fname: &str,
    file: TeaclaveOutputFile
) -> Result<()>
[src]

impl Task<Approve>[src]

pub fn new(ts: TaskState) -> Result<Self>[src]

pub fn approve(&mut self, requester: &UserID) -> Result<()>[src]

impl Task<Stage>[src]

pub fn new(ts: TaskState) -> Result<Self>[src]

pub fn stage_for_running(
    &mut self,
    requester: &UserID,
    function: Function
) -> Result<StagedTask>
[src]

impl Task<Run>[src]

pub fn new(ts: TaskState) -> Result<Self>[src]

impl Task<Finish>[src]

pub fn new(ts: TaskState) -> Result<Self>[src]

pub fn update_output_cmac(
    &mut self,
    fname: &str,
    auth_tag: &FileAuthTag
) -> Result<&TeaclaveOutputFile>
[src]

pub fn update_result(&mut self, result: TaskResult) -> Result<()>[src]

impl Task<Done>[src]

pub fn new(ts: TaskState) -> Result<Self>[src]

Trait Implementations

impl<S: Clone + StateTag> Clone for Task<S>[src]

impl<S: Debug + StateTag> Debug for Task<S>[src]

impl<S: Default + StateTag> Default for Task<S>[src]

impl<'de, S: StateTag> Deserialize<'de> for Task<S> where
    S: Deserialize<'de>, 
[src]

impl From<Task<Approve>> for TaskState[src]

impl From<Task<Assign>> for TaskState[src]

impl From<Task<Create>> for TaskState[src]

impl From<Task<Finish>> for TaskState[src]

impl From<Task<Run>> for TaskState[src]

impl From<Task<Stage>> for TaskState[src]

impl<S: StateTag> Serialize for Task<S> where
    S: Serialize
[src]

impl TryFrom<TaskState> for Task<Assign>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<TaskState> for Task<Approve>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<TaskState> for Task<Stage>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<TaskState> for Task<Run>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<TaskState> for Task<Finish>[src]

type Error = Error

The type returned in the event of a conversion error.

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> 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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>, 
[src]