#[non_exhaustive]pub struct NodeSummary { /* private fields */ }Expand description
A minimal summary of a node for scheduling decisions.
index: the node identifier in the graph.earliest_deadline: minimum absolute deadline among ready inputs, or synthesizednow + default_deadline_nsif policy provides a default and inputs lack deadlines; otherwiseNone.readiness: derived from input availability and output pressure (seeReadinesscontract above).backpressure: the maximum watermark state across all outputs.
Implementations§
Source§impl NodeSummary
impl NodeSummary
Sourcepub const fn new(
index: NodeIndex,
earliest_deadline: Option<DeadlineNs>,
readiness: Readiness,
backpressure: WatermarkState,
) -> Self
pub const fn new( index: NodeIndex, earliest_deadline: Option<DeadlineNs>, readiness: Readiness, backpressure: WatermarkState, ) -> Self
Constructs a new NodeSummary from the provided fields.
Sourcepub const fn earliest_deadline(&self) -> &Option<DeadlineNs>
pub const fn earliest_deadline(&self) -> &Option<DeadlineNs>
Earliest absolute deadline (if any) among its ready inputs.
Sourcepub const fn backpressure(&self) -> &WatermarkState
pub const fn backpressure(&self) -> &WatermarkState
Current backpressure state from outputs.
Trait Implementations§
Source§impl Clone for NodeSummary
impl Clone for NodeSummary
Source§fn clone(&self) -> NodeSummary
fn clone(&self) -> NodeSummary
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 NodeSummary
impl Debug for NodeSummary
Source§impl PartialEq for NodeSummary
impl PartialEq for NodeSummary
impl Copy for NodeSummary
impl Eq for NodeSummary
impl StructuralPartialEq for NodeSummary
Auto Trait Implementations§
impl Freeze for NodeSummary
impl RefUnwindSafe for NodeSummary
impl Send for NodeSummary
impl Sync for NodeSummary
impl Unpin for NodeSummary
impl UnsafeUnpin for NodeSummary
impl UnwindSafe for NodeSummary
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