pub struct SelectionResult {
pub key: SelectionKey,
pub index: usize,
pub kind: String,
pub identity: String,
pub value: Option<ParallelResult>,
pub failure: Option<Error>,
pub winner: DurableOperationHandle,
pub handles: Vec<DurableOperationHandle>,
}Expand description
The one winner committed for a durable selection group.
Fields§
§key: SelectionKey§index: usize§kind: String§identity: String§value: Option<ParallelResult>§failure: Option<Error>§winner: DurableOperationHandle§handles: Vec<DurableOperationHandle>Implementations§
Source§impl SelectionResult
impl SelectionResult
pub fn succeeded(&self) -> bool
pub fn handle(&self, key: &SelectionKey) -> Option<&DurableOperationHandle>
pub fn remaining(&self) -> Vec<&DurableOperationHandle>
pub fn into_result(self) -> Result<ParallelResult>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SelectionResult
impl !UnwindSafe for SelectionResult
impl Forget for SelectionResult
impl Freeze for SelectionResultwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<ParallelResult>: Freeze,
*const Inner is !null: Freeze,
PhantomData<Inner>: Freeze,
&'static str: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
NonZero<u16>: Freeze,
*const NexusOperationFailure is !null: Freeze,
PhantomData<NexusOperationFailure>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<ParallelGroupMetadata>: Freeze,
PhantomData<ParallelCompletion>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<CancellationLineage>: Freeze,
*const ScopedCancellationContext is !null: Freeze,
PhantomData<ScopedCancellationContext>: Freeze,
*const ArcInner<Mutex<WorkflowState>> is !null: Freeze,
PhantomData<ScopedCancellationLineage>: Freeze,
*const LeafNode<String, Vec<String>> is !null: Freeze,
PhantomData<Box<(String, Vec<String>)>>: Freeze,
*const ArcInner<FailureView> is !null: Freeze,
PhantomData<ArcInner<FailureView>>: Freeze,
PhantomData<AvroValue>: Freeze,
*const LeafNode<String, AvroValue> is !null: Freeze,
PhantomData<Box<(String, AvroValue)>>: Freeze,
PhantomData<ArcInner<Mutex<WorkflowState>>>: Freeze,
PhantomData<ParallelShape>: Freeze,
PhantomData<DurableOperationHandle>: Freeze,
impl Move for SelectionResult
impl Send for SelectionResultwhere
RawVecInner: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
BoxRaw<Inner>: Send,
&'static str: Send,
BoxRaw<ErrorImpl>: Send,
NonZero<u16>: Send,
BoxRaw<NexusOperationFailure>: Send,
BoxRaw<Error>: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
NonZero<i32>: Send,
Utc: Send,
BoxRaw<ScopedCancellationContext>: Send,
Weak<Mutex<WorkflowState>>: Send,
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Send,
BoxRaw<(String, Vec<String>)>: Send,
Arc<FailureView>: Send,
NodeRef<Owned, String, AvroValue, LeafOrInternal>: Send,
BoxRaw<(String, AvroValue)>: Send,
Arc<Mutex<WorkflowState>>: Send,
impl Sync for SelectionResultwhere
RawVecInner: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
BoxRaw<Inner>: Sync,
BoxRaw<ErrorImpl>: Sync,
NonZero<u16>: Sync,
BoxRaw<NexusOperationFailure>: Sync,
BoxRaw<Error>: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
NonZero<i32>: Sync,
Utc: Sync,
BoxRaw<ScopedCancellationContext>: Sync,
Weak<Mutex<WorkflowState>>: Sync,
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Sync,
BoxRaw<(String, Vec<String>)>: Sync,
Arc<FailureView>: Sync,
NodeRef<Owned, String, AvroValue, LeafOrInternal>: Sync,
BoxRaw<(String, AvroValue)>: Sync,
Arc<Mutex<WorkflowState>>: Sync,
impl Unpin for SelectionResultwhere
*const u8 is !null: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
Box<Inner>: Unpin,
&'static str: Unpin,
Box<ErrorImpl>: Unpin,
NonZero<u16>: Unpin,
Box<NexusOperationFailure>: Unpin,
Box<Error>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
NonZero<i32>: Unpin,
Utc: Unpin,
Box<ScopedCancellationContext>: Unpin,
*const ArcInner<Mutex<WorkflowState>> is !null: Unpin,
*const LeafNode<String, Vec<String>> is !null: Unpin,
Box<(String, Vec<String>)>: Unpin,
Arc<FailureView>: Unpin,
*const LeafNode<String, AvroValue> is !null: Unpin,
Box<(String, AvroValue)>: Unpin,
Arc<Mutex<WorkflowState>>: Unpin,
impl UnsafeUnpin for SelectionResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<ParallelResult>: UnsafeUnpin,
*const Inner is !null: UnsafeUnpin,
PhantomData<Inner>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
NonZeroU16Inner: UnsafeUnpin,
*const NexusOperationFailure is !null: UnsafeUnpin,
PhantomData<NexusOperationFailure>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<ParallelGroupMetadata>: UnsafeUnpin,
PhantomData<ParallelCompletion>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<CancellationLineage>: UnsafeUnpin,
*const ScopedCancellationContext is !null: UnsafeUnpin,
PhantomData<ScopedCancellationContext>: UnsafeUnpin,
*const ArcInner<Mutex<WorkflowState>> is !null: UnsafeUnpin,
PhantomData<ScopedCancellationLineage>: UnsafeUnpin,
*const LeafNode<String, Vec<String>> is !null: UnsafeUnpin,
PhantomData<Box<(String, Vec<String>)>>: UnsafeUnpin,
*const ArcInner<FailureView> is !null: UnsafeUnpin,
PhantomData<ArcInner<FailureView>>: UnsafeUnpin,
PhantomData<AvroValue>: UnsafeUnpin,
*const LeafNode<String, AvroValue> is !null: UnsafeUnpin,
PhantomData<Box<(String, AvroValue)>>: UnsafeUnpin,
PhantomData<ArcInner<Mutex<WorkflowState>>>: UnsafeUnpin,
PhantomData<ParallelShape>: UnsafeUnpin,
PhantomData<DurableOperationHandle>: UnsafeUnpin,
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