pub enum AnyTaskResult {
Ok(AnyTaskOutput),
Err(String),
}
Expand description
A serializable Result
type for AnyTaskOutput
.
Result
isn’t serializable, so we need to wrap it in a type that is.
Variants§
Ok(AnyTaskOutput)
Err(String)
Implementations§
Source§impl AnyTaskResult
impl AnyTaskResult
Sourcepub fn into_task_result<Op: Operation, Metadata: Serializable>(
self,
) -> TaskResult<Op, Metadata>
pub fn into_task_result<Op: Operation, Metadata: Serializable>( self, ) -> TaskResult<Op, Metadata>
Convert an opaque AnyTaskResult
into a typed TaskResult
.
Trait Implementations§
Source§impl Debug for AnyTaskResult
impl Debug for AnyTaskResult
Source§impl<'de> Deserialize<'de> for AnyTaskResult
impl<'de> Deserialize<'de> for AnyTaskResult
Source§fn 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
Source§impl<Op: Operation, Metadata: Serializable> From<AnyTaskResult> for Result<TaskOutput<Op, Metadata>>
impl<Op: Operation, Metadata: Serializable> From<AnyTaskResult> for Result<TaskOutput<Op, Metadata>>
Source§fn from(value: AnyTaskResult) -> Self
fn from(value: AnyTaskResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for AnyTaskResult
impl RefUnwindSafe for AnyTaskResult
impl Send for AnyTaskResult
impl Sync for AnyTaskResult
impl Unpin for AnyTaskResult
impl UnwindSafe for AnyTaskResult
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more