pub struct PlanPolicy {
pub network: NetworkPolicy,
pub max_parallel: usize,
pub max_downloads: usize,
pub max_memory_mib: Option<u64>,
}Expand description
Resource and policy limits copied into an execution plan.
Fields§
§network: NetworkPolicyNetwork access allowed during execution.
max_parallel: usizeMaximum number of concurrently scheduled nodes.
max_downloads: usizeMaximum number of concurrent network transfers.
max_memory_mib: Option<u64>Optional upper bound on memory tokens, in MiB.
Trait Implementations§
Source§impl Clone for PlanPolicy
impl Clone for PlanPolicy
Source§fn clone(&self) -> PlanPolicy
fn clone(&self) -> PlanPolicy
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 PlanPolicy
impl Debug for PlanPolicy
Source§impl<'de> Deserialize<'de> for PlanPolicy
impl<'de> Deserialize<'de> for PlanPolicy
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 Eq for PlanPolicy
Source§impl PartialEq for PlanPolicy
impl PartialEq for PlanPolicy
Source§impl Serialize for PlanPolicy
impl Serialize for PlanPolicy
impl StructuralPartialEq for PlanPolicy
Auto Trait Implementations§
impl Freeze for PlanPolicy
impl RefUnwindSafe for PlanPolicy
impl Send for PlanPolicy
impl Sync for PlanPolicy
impl Unpin for PlanPolicy
impl UnsafeUnpin for PlanPolicy
impl UnwindSafe for PlanPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.