Enum teaclave_types::TaskResult
source · [−]pub enum TaskResult {
NotReady,
Ok(TaskOutputs),
Err(TaskFailure),
}
Variants
NotReady
Ok(TaskOutputs)
Err(TaskFailure)
Implementations
sourceimpl TaskResult
impl TaskResult
Trait Implementations
sourceimpl Clone for TaskResult
impl Clone for TaskResult
sourcefn clone(&self) -> TaskResult
fn clone(&self) -> TaskResult
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TaskResult
impl Debug for TaskResult
sourceimpl Default for TaskResult
impl Default for TaskResult
sourceimpl<'de> Deserialize<'de> for TaskResult
impl<'de> Deserialize<'de> for TaskResult
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
sourceimpl<T, E> From<TaskResult> for Option<Result<T, E>>where
T: From<TaskOutputs>,
E: From<TaskFailure>,
impl<T, E> From<TaskResult> for Option<Result<T, E>>where
T: From<TaskOutputs>,
E: From<TaskFailure>,
sourcefn from(task_result: TaskResult) -> Option<Result<T, E>>
fn from(task_result: TaskResult) -> Option<Result<T, E>>
Converts to this type from the input type.
sourceimpl Serialize for TaskResult
impl Serialize for TaskResult
Auto Trait Implementations
impl RefUnwindSafe for TaskResult
impl Send for TaskResult
impl Sync for TaskResult
impl Unpin for TaskResult
impl UnwindSafe for TaskResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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