pub struct WorkflowResults { /* private fields */ }Expand description
Named, owner-backed values returned by one workflow execution.
Implementations§
Source§impl WorkflowResults
impl WorkflowResults
Sourcepub fn get<T: Send + Sync + 'static>(
&self,
output: &Output<T>,
) -> Result<&T, WorkflowError>
pub fn get<T: Send + Sync + 'static>( &self, output: &Output<T>, ) -> Result<&T, WorkflowError>
Returns a result through its typed output handle.
§Errors
Returns an error when the handle belongs to another graph, the result is missing or its requested type is inconsistent.
Clones the result’s shared owner without copying its payload.
This is the lifetime-safe path for FFI views that must outlive the
WorkflowResults map.
§Errors
Returns the same handle, name, and type errors as Self::get.
Sourcepub fn get_named<T: Send + Sync + 'static>(
&self,
name: &str,
) -> Result<&T, WorkflowError>
pub fn get_named<T: Send + Sync + 'static>( &self, name: &str, ) -> Result<&T, WorkflowError>
Returns a result by its stable name and expected Rust type.
§Errors
Returns an error when the name is absent or the requested type differs.
Sourcepub fn names(&self) -> impl ExactSizeIterator<Item = &str>
pub fn names(&self) -> impl ExactSizeIterator<Item = &str>
Stable output names in lexical order.
Trait Implementations§
Source§impl Clone for WorkflowResults
impl Clone for WorkflowResults
Source§impl Debug for WorkflowResults
impl Debug for WorkflowResults
Auto Trait Implementations§
impl !RefUnwindSafe for WorkflowResults
impl !UnwindSafe for WorkflowResults
impl Freeze for WorkflowResults
impl Send for WorkflowResults
impl Sync for WorkflowResults
impl Unpin for WorkflowResults
impl UnsafeUnpin for WorkflowResults
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more