pub enum LeanWorkerMetaResult<T> {
Ok {
value: T,
},
Failed {
failure: LeanWorkerElabFailure,
},
TimeoutOrHeartbeat {
failure: LeanWorkerElabFailure,
},
Unsupported {
failure: LeanWorkerElabFailure,
},
}Expand description
Outcome of one bounded MetaM service call over the worker boundary.
Mirrors lean_rs_host::meta::LeanMetaResponse<T>. Callers branch on the
variant; the typed payload lives in Ok { value }, and the three
non-success arms carry a structured LeanWorkerElabFailure.
Variants§
Ok
The MetaM action returned a typed payload.
Fields
§
value: TFailed
The MetaM action raised a non-resource-exhaustion exception.
Fields
§
failure: LeanWorkerElabFailureTimeoutOrHeartbeat
The heartbeat ceiling tripped before the action finished.
Fields
§
failure: LeanWorkerElabFailureUnsupported
The capability did not provide this service.
Fields
§
failure: LeanWorkerElabFailureTrait Implementations§
Source§impl<T: Clone> Clone for LeanWorkerMetaResult<T>
impl<T: Clone> Clone for LeanWorkerMetaResult<T>
Source§fn clone(&self) -> LeanWorkerMetaResult<T>
fn clone(&self) -> LeanWorkerMetaResult<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for LeanWorkerMetaResult<T>
impl<T: Debug> Debug for LeanWorkerMetaResult<T>
Source§impl<'de, T> Deserialize<'de> for LeanWorkerMetaResult<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for LeanWorkerMetaResult<T>where
T: Deserialize<'de>,
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<T: PartialEq> PartialEq for LeanWorkerMetaResult<T>
impl<T: PartialEq> PartialEq for LeanWorkerMetaResult<T>
Source§fn eq(&self, other: &LeanWorkerMetaResult<T>) -> bool
fn eq(&self, other: &LeanWorkerMetaResult<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T> Serialize for LeanWorkerMetaResult<T>where
T: Serialize,
impl<T> Serialize for LeanWorkerMetaResult<T>where
T: Serialize,
impl<T: Eq> Eq for LeanWorkerMetaResult<T>
impl<T> StructuralPartialEq for LeanWorkerMetaResult<T>
Auto Trait Implementations§
impl<T> Freeze for LeanWorkerMetaResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for LeanWorkerMetaResult<T>where
T: RefUnwindSafe,
impl<T> Send for LeanWorkerMetaResult<T>where
T: Send,
impl<T> Sync for LeanWorkerMetaResult<T>where
T: Sync,
impl<T> Unpin for LeanWorkerMetaResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for LeanWorkerMetaResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LeanWorkerMetaResult<T>where
T: UnwindSafe,
Blanket Implementations§
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