#[non_exhaustive]pub enum JoinPolicy {
All,
AllSettled,
First,
}Expand description
How spawned work is recombined.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All
Wait for all; a failure fails the join.
AllSettled
Wait for all, keeping whatever succeeded.
First
Take the first success and cancel the rest.
Implementations§
Source§impl JoinPolicy
impl JoinPolicy
Sourcepub fn label(&self) -> &'static str
pub fn label(&self) -> &'static str
A label for telemetry, in the spirit of Effect::label.
Trait Implementations§
Source§impl Clone for JoinPolicy
impl Clone for JoinPolicy
Source§fn clone(&self) -> JoinPolicy
fn clone(&self) -> JoinPolicy
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 Debug for JoinPolicy
impl Debug for JoinPolicy
Source§impl Default for JoinPolicy
impl Default for JoinPolicy
Source§fn default() -> JoinPolicy
fn default() -> JoinPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JoinPolicy
impl<'de> Deserialize<'de> for JoinPolicy
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 PartialEq for JoinPolicy
impl PartialEq for JoinPolicy
Source§fn eq(&self, other: &JoinPolicy) -> bool
fn eq(&self, other: &JoinPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for JoinPolicy
impl Serialize for JoinPolicy
impl Copy for JoinPolicy
impl Eq for JoinPolicy
impl StructuralPartialEq for JoinPolicy
Auto Trait Implementations§
impl Freeze for JoinPolicy
impl RefUnwindSafe for JoinPolicy
impl Send for JoinPolicy
impl Sync for JoinPolicy
impl Unpin for JoinPolicy
impl UnsafeUnpin for JoinPolicy
impl UnwindSafe for JoinPolicy
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