pub enum JoinKind {
All = 0,
Race = 1,
Any = 2,
Settle = 3,
}Expand description
Join strategy for async join expressions
Variants§
All = 0
Wait for all branches to complete, return tuple of results
Race = 1
Return the first branch to complete, cancel the rest
Any = 2
Return the first branch to succeed (non-error), cancel the rest
Settle = 3
Wait for all branches, preserve individual success/error results
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JoinKind
impl<'de> Deserialize<'de> for JoinKind
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
impl Copy for JoinKind
impl Eq for JoinKind
impl StructuralPartialEq for JoinKind
Auto Trait Implementations§
impl Freeze for JoinKind
impl RefUnwindSafe for JoinKind
impl Send for JoinKind
impl Sync for JoinKind
impl Unpin for JoinKind
impl UnsafeUnpin for JoinKind
impl UnwindSafe for JoinKind
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