Enum brane_ast::MergeStrategy
source · pub enum MergeStrategy {
First,
FirstBlocking,
Last,
Sum,
Product,
Max,
Min,
All,
None,
}
Expand description
Defines merge strategies for the parallel statements.
Variants§
First
Take the value that arrived first. The statement will already return as soon as this statement is in, not the rest.
FirstBlocking
Take the value that arrived first. The statement will still block until all values returned.
Last
Take the value that arrived last.
Sum
Add all the resulting values together. This means that they must all be numeric.
Product
Multiple all the resulting values together. This means that they must all be numeric.
Max
Take the largest value. Use on booleans to get an ‘OR’-effect (i.e., it returns true iff there is at least one true).
Min
Take the smallest value. Use on booleans to get an ‘AND’-effect (i.e., it returns false iff there is at least one false).
All
Returns all values as an Array.
None
No merge strategy needed
Trait Implementations§
source§impl Clone for MergeStrategy
impl Clone for MergeStrategy
source§fn clone(&self) -> MergeStrategy
fn clone(&self) -> MergeStrategy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MergeStrategy
impl Debug for MergeStrategy
source§impl<'de> Deserialize<'de> for MergeStrategy
impl<'de> Deserialize<'de> for MergeStrategy
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MergeStrategy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MergeStrategy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl From<&String> for MergeStrategy
impl From<&String> for MergeStrategy
source§fn from(value: &String) -> MergeStrategy
fn from(value: &String) -> MergeStrategy
source§impl From<&str> for MergeStrategy
impl From<&str> for MergeStrategy
source§fn from(value: &str) -> MergeStrategy
fn from(value: &str) -> MergeStrategy
source§impl From<String> for MergeStrategy
impl From<String> for MergeStrategy
source§fn from(value: String) -> MergeStrategy
fn from(value: String) -> MergeStrategy
source§impl Hash for MergeStrategy
impl Hash for MergeStrategy
source§impl PartialEq for MergeStrategy
impl PartialEq for MergeStrategy
source§impl Serialize for MergeStrategy
impl Serialize for MergeStrategy
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for MergeStrategy
impl Eq for MergeStrategy
impl StructuralPartialEq for MergeStrategy
Auto Trait Implementations§
impl Freeze for MergeStrategy
impl RefUnwindSafe for MergeStrategy
impl Send for MergeStrategy
impl Sync for MergeStrategy
impl Unpin for MergeStrategy
impl UnwindSafe for MergeStrategy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request