pub struct DagNode {
pub task_id: TaskId,
pub task_name: String,
pub dependencies: HashSet<TaskId>,
pub dependents: HashSet<TaskId>,
}Expand description
A node in the task DAG
Fields§
§task_id: TaskIdTask ID
task_name: StringTask name for debugging
dependencies: HashSet<TaskId>Tasks that this task depends on (must complete before this task)
dependents: HashSet<TaskId>Tasks that depend on this task (will execute after this task)
Implementations§
Source§impl DagNode
impl DagNode
Sourcepub fn has_dependencies(&self) -> bool
pub fn has_dependencies(&self) -> bool
Check if this node has any dependencies
Sourcepub fn has_dependents(&self) -> bool
pub fn has_dependents(&self) -> bool
Check if this node has any dependents
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DagNode
impl<'de> Deserialize<'de> for DagNode
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 DagNode
impl RefUnwindSafe for DagNode
impl Send for DagNode
impl Sync for DagNode
impl Unpin for DagNode
impl UnwindSafe for DagNode
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