pub struct GraphExecutionLimits { /* private fields */ }Expand description
Hard execution ceilings embedded in one graph definition.
Implementations§
Source§impl GraphExecutionLimits
impl GraphExecutionLimits
Sourcepub const fn new(
maximum_supersteps: Superstep,
maximum_parallelism: u16,
) -> Result<Self, GraphExecutionLimitsError>
pub const fn new( maximum_supersteps: Superstep, maximum_parallelism: u16, ) -> Result<Self, GraphExecutionLimitsError>
Constructs positive limits below framework and storage ceilings.
§Errors
Returns GraphExecutionLimitsError for a zero superstep or
parallelism limit, or for parallelism above ReadyNodes::MAX_LEN.
Sourcepub const fn maximum_supersteps(self) -> Superstep
pub const fn maximum_supersteps(self) -> Superstep
Returns the maximum number of barriers that may execute.
Sourcepub const fn maximum_parallelism(self) -> u16
pub const fn maximum_parallelism(self) -> u16
Returns the maximum number of ready nodes in one superstep.
Trait Implementations§
Source§impl Clone for GraphExecutionLimits
impl Clone for GraphExecutionLimits
impl Copy for GraphExecutionLimits
Source§impl Debug for GraphExecutionLimits
impl Debug for GraphExecutionLimits
Source§impl<'de> Deserialize<'de> for GraphExecutionLimits
impl<'de> Deserialize<'de> for GraphExecutionLimits
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 GraphExecutionLimits
Source§impl JsonSchema for GraphExecutionLimits
impl JsonSchema for GraphExecutionLimits
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for GraphExecutionLimits
impl PartialEq for GraphExecutionLimits
Source§impl Serialize for GraphExecutionLimits
impl Serialize for GraphExecutionLimits
impl StructuralPartialEq for GraphExecutionLimits
Auto Trait Implementations§
impl Forget for GraphExecutionLimits
impl Freeze for GraphExecutionLimits
impl Move for GraphExecutionLimits
impl RefUnwindSafe for GraphExecutionLimits
impl Send for GraphExecutionLimits
impl Sync for GraphExecutionLimits
impl Unpin for GraphExecutionLimits
impl UnsafeUnpin for GraphExecutionLimits
impl UnwindSafe for GraphExecutionLimits
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