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 Freeze for SelectionResult
impl Send for SelectionResult
impl Sync for SelectionResult
impl Unpin for SelectionResult
impl UnsafeUnpin for SelectionResult
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