pub struct SubmitPlan {
pub routes: Vec<SubmitRoute>,
pub strategy: SubmitStrategy,
}Expand description
Route-plan based submission configuration.
Fields§
§routes: Vec<SubmitRoute>Configured submit routes.
strategy: SubmitStrategyRoute execution strategy.
Implementations§
Source§impl SubmitPlan
impl SubmitPlan
Sourcepub fn new(routes: Vec<SubmitRoute>, strategy: SubmitStrategy) -> Self
pub fn new(routes: Vec<SubmitRoute>, strategy: SubmitStrategy) -> Self
Creates one normalized plan.
Sourcepub fn into_normalized(self) -> Self
pub fn into_normalized(self) -> Self
Normalizes this plan in place while preserving route order.
Sourcepub fn normalized(&self) -> Self
pub fn normalized(&self) -> Self
Returns a normalized clone of this plan.
Sourcepub fn direct_only() -> Self
pub fn direct_only() -> Self
Builds a single-route direct plan.
Sourcepub fn ordered(routes: Vec<SubmitRoute>) -> Self
pub fn ordered(routes: Vec<SubmitRoute>) -> Self
Builds one custom ordered-fallback plan.
Sourcepub fn all_at_once(routes: Vec<SubmitRoute>) -> Self
pub fn all_at_once(routes: Vec<SubmitRoute>) -> Self
Builds one concurrent all-route plan.
Sourcepub fn legacy_mode(&self) -> Option<SubmitMode>
pub fn legacy_mode(&self) -> Option<SubmitMode>
Returns the matching legacy preset when this plan is one exact legacy shape.
Trait Implementations§
Source§impl Clone for SubmitPlan
impl Clone for SubmitPlan
Source§fn clone(&self) -> SubmitPlan
fn clone(&self) -> SubmitPlan
Returns a duplicate of the value. Read more
1.0.0 · 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 SubmitPlan
impl Debug for SubmitPlan
Source§impl Default for SubmitPlan
impl Default for SubmitPlan
Source§impl<'de> Deserialize<'de> for SubmitPlan
impl<'de> Deserialize<'de> for SubmitPlan
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 From<SubmitMode> for SubmitPlan
impl From<SubmitMode> for SubmitPlan
Source§fn from(value: SubmitMode) -> Self
fn from(value: SubmitMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SubmitPlan
impl PartialEq for SubmitPlan
Source§impl Serialize for SubmitPlan
impl Serialize for SubmitPlan
impl Eq for SubmitPlan
impl StructuralPartialEq for SubmitPlan
Auto Trait Implementations§
impl Freeze for SubmitPlan
impl RefUnwindSafe for SubmitPlan
impl Send for SubmitPlan
impl Sync for SubmitPlan
impl Unpin for SubmitPlan
impl UnsafeUnpin for SubmitPlan
impl UnwindSafe for SubmitPlan
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more