pub struct ECB {
    pub id: EcbId,
    pub spawned_tasks: Vec<SpawnedTask>,
    result_task: Option<EcbId>,
    pub notifying_tasks: HashSet<EcbId>,
    parent_ecb: DownstreamTaskDependency,
    pub downstream_dependents: Vec<DownstreamTaskDependency>,
    pub upstream_control_dependencies: HashSet<EcbId>,
    result: Option<NandoResult>,
    pub planning_context: PlanningContext,
}

Fields§

§id: EcbId§spawned_tasks: Vec<SpawnedTask>§result_task: Option<EcbId>§notifying_tasks: HashSet<EcbId>§parent_ecb: DownstreamTaskDependency§downstream_dependents: Vec<DownstreamTaskDependency>§upstream_control_dependencies: HashSet<EcbId>§result: Option<NandoResult>§planning_context: PlanningContext

Implementations§

source§

impl ECB

source

pub fn new_top_level( host_idx: u64, top_level_activation_id: ActivationId ) -> Self

source

pub fn new_from_dependency_info(spawned_task_info: &SpawnedTask) -> Self

source

pub fn get_last_unresolved_arg_idx(&self) -> usize

source

pub fn add_new_spawned_task( &mut self, pending_intent: NandoActivationIntent ) -> NandoArgument

source

pub fn add_new_spawned_task_and_update_dependencies( &mut self, pending_intent: NandoActivationIntent ) -> NandoArgument

source

pub fn add_new_spawned_task_with_control_dependencies( &mut self, pending_intent: NandoActivationIntent ) -> NandoArgument

source

pub fn add_continuation_with_control_dependencies( &mut self, pending_intent: NandoActivationIntent, control_dependencies: &Vec<NandoArgument> ) -> NandoArgument

source

pub fn is_top_level(&self) -> bool

source

pub fn should_notify_parent(&self) -> bool

source

pub fn has_downstream_dependents(&self) -> bool

source

pub fn has_spawned_tasks(&self) -> bool

source

pub fn get_downstream_dependents(&self) -> Vec<DownstreamTaskDependency>

source

pub fn set_parent_ecb_id(&mut self, parent_ecb_id: EcbId)

source

pub fn get_parent_ecb_id(&self) -> Option<EcbId>

source

pub fn get_parent_as_downstream_dependency(&self) -> DownstreamTaskDependency

source

pub fn get_result(&self) -> Option<NandoResult>

source

pub fn set_result(&mut self, result: NandoResult)

source

pub fn get_associated_activation_id(&self) -> ActivationId

source

pub fn get_last_unresolved_arg(&self) -> Option<NandoArgument>

source

pub fn to_task_control_info(&self, intent: NandoActivationIntent) -> SpawnedTask

source

pub fn maybe_set_result_from_task( &mut self, ecb_id: EcbId, result: Option<NandoResult> )

source

fn is_result_task(&self, ecb_id: EcbId) -> bool

source

pub fn set_result_task(&mut self, result_task_id: EcbId)

source

pub fn set_last_spawn_as_result_task(&mut self)

source

pub fn mark_control_dependency_done(&mut self, control_dependency_id: EcbId)

source

pub fn has_pending_control_dependencies(&self) -> bool

source

pub fn add_notifying_task(&mut self, notifying_task_id: EcbId)

Trait Implementations§

source§

impl Clone for ECB

source§

fn clone(&self) -> ECB

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ECB

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&SpawnedTask> for ECB

source§

fn from(value: &SpawnedTask) -> Self

Converts to this type from the input type.
source§

impl From<&mut SpawnedTask> for ECB

source§

fn from(value: &mut SpawnedTask) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl !RefUnwindSafe for ECB

§

impl Send for ECB

§

impl Sync for ECB

§

impl Unpin for ECB

§

impl !UnwindSafe for ECB

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V