pub struct FanOutContract {
pub members: Vec<Delegation>,
pub max_in_flight: u32,
pub on_member_failure: MemberFailurePolicy,
}Expand description
fan_out — run members under a bounded in-flight window and merge the
completed results in deterministic order (R0.7 wave 3).
Fields§
§members: Vec<Delegation>The member assignments. Member names must be unique.
max_in_flight: u32The in-flight window: at most this many member tasks are unsubmitted-or-running at once. Must be ≥ 1 — the window is the backpressure guarantee, and a zero window would deadlock the pattern.
on_member_failure: MemberFailurePolicyWhat one terminal member failure does to the whole pattern.
Implementations§
Source§impl FanOutContract
impl FanOutContract
Sourcepub fn validate(&self) -> Result<(), CoordinationViolation>
pub fn validate(&self) -> Result<(), CoordinationViolation>
Structural validation enforced at submission: a non-empty member set with unique names and a window of at least one.
Trait Implementations§
Source§impl Clone for FanOutContract
impl Clone for FanOutContract
Source§fn clone(&self) -> FanOutContract
fn clone(&self) -> FanOutContract
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 FanOutContract
impl Debug for FanOutContract
Source§impl<'de> Deserialize<'de> for FanOutContract
impl<'de> Deserialize<'de> for FanOutContract
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 FanOutContract
impl PartialEq for FanOutContract
Source§impl Serialize for FanOutContract
impl Serialize for FanOutContract
impl StructuralPartialEq for FanOutContract
Auto Trait Implementations§
impl Freeze for FanOutContract
impl RefUnwindSafe for FanOutContract
impl Send for FanOutContract
impl Sync for FanOutContract
impl Unpin for FanOutContract
impl UnsafeUnpin for FanOutContract
impl UnwindSafe for FanOutContract
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