#[non_exhaustive]pub struct NodePolicy { /* private fields */ }Expand description
Policy bundle attached to a node.
Used by schedulers:
batching.fixed_n/max_delta_tguide batch formation.budget.tick_budget(soft) andbudget.watchdog_ticks(hard) guide time budgeting.deadline.default_deadline_nsallows EDF synthesis when inputs have no deadlines,deadline.slack_tolerance_nsprovides grace, andrequire_absolute_deadlineenforces strictness.
Implementations§
Source§impl NodePolicy
impl NodePolicy
Sourcepub const fn new(
batching: BatchingPolicy,
budget: BudgetPolicy,
deadline: DeadlinePolicy,
) -> Self
pub const fn new( batching: BatchingPolicy, budget: BudgetPolicy, deadline: DeadlinePolicy, ) -> Self
Construct a NodePolicy explicitly.
Sourcepub const fn batching(&self) -> &BatchingPolicy
pub const fn batching(&self) -> &BatchingPolicy
Borrow the batching policy.
Sourcepub const fn budget(&self) -> &BudgetPolicy
pub const fn budget(&self) -> &BudgetPolicy
Borrow the budget policy.
Sourcepub const fn deadline(&self) -> &DeadlinePolicy
pub const fn deadline(&self) -> &DeadlinePolicy
Borrow the deadline policy.
Trait Implementations§
Source§impl Clone for NodePolicy
impl Clone for NodePolicy
Source§fn clone(&self) -> NodePolicy
fn clone(&self) -> NodePolicy
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 NodePolicy
impl Debug for NodePolicy
Source§impl Default for NodePolicy
impl Default for NodePolicy
Source§fn default() -> NodePolicy
fn default() -> NodePolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for NodePolicy
impl PartialEq for NodePolicy
impl Copy for NodePolicy
impl Eq for NodePolicy
impl StructuralPartialEq for NodePolicy
Auto Trait Implementations§
impl Freeze for NodePolicy
impl RefUnwindSafe for NodePolicy
impl Send for NodePolicy
impl Sync for NodePolicy
impl Unpin for NodePolicy
impl UnsafeUnpin for NodePolicy
impl UnwindSafe for NodePolicy
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