pub struct ExecutionPlan {
pub primary: ExecutionTarget,
pub fallback_chain: Vec<ExecutionTarget>,
}Expand description
执行计划:包含主目标和回退链
Fields§
§primary: ExecutionTarget§fallback_chain: Vec<ExecutionTarget>Implementations§
Source§impl ExecutionPlan
impl ExecutionPlan
pub fn new(primary: ExecutionTarget) -> Self
pub fn with_fallback(self, fallback: ExecutionTarget) -> Self
pub fn with_fallbacks(self, fallbacks: Vec<ExecutionTarget>) -> Self
Sourcepub fn all_targets(&self) -> impl Iterator<Item = &ExecutionTarget>
pub fn all_targets(&self) -> impl Iterator<Item = &ExecutionTarget>
获取所有执行目标(主目标 + 回退链)
Trait Implementations§
Source§impl Clone for ExecutionPlan
impl Clone for ExecutionPlan
Source§fn clone(&self) -> ExecutionPlan
fn clone(&self) -> ExecutionPlan
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 ExecutionPlan
impl Debug for ExecutionPlan
Source§impl<'de> Deserialize<'de> for ExecutionPlan
impl<'de> Deserialize<'de> for ExecutionPlan
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
Auto Trait Implementations§
impl Freeze for ExecutionPlan
impl RefUnwindSafe for ExecutionPlan
impl Send for ExecutionPlan
impl Sync for ExecutionPlan
impl Unpin for ExecutionPlan
impl UnsafeUnpin for ExecutionPlan
impl UnwindSafe for ExecutionPlan
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