Pick Up Outcome Mixin
A mixin of the PickUpOutcome that provides convenient methods for accessing the result.
Functions
Link copied to clipboard
Returns
ShardAlreadyPickedUp
if this outcome indicates that shard could not be picked up as it's already picked up by another worker, or empty Optional
otherwise.Creates a new
PickUpOutcome
indicating that the shard is already picked up by the given worker in pickedUp
message.