[][src]Struct dager::edge::Edge

pub struct Edge {
    pub type_id: TypeId,
    pub start_node: Arc<Mutex<dyn AbstAggregator + Send>>,
    pub start_idx: usize,
    pub end_node: Arc<Mutex<dyn AbstAggregator + Send>>,
    pub end_idx: usize,
}

An edge which transports data. The type id can be retrieved at runtime via the type id

Fields

type_id: TypeIdstart_node: Arc<Mutex<dyn AbstAggregator + Send>>start_idx: usizeend_node: Arc<Mutex<dyn AbstAggregator + Send>>end_idx: usize

Implementations

impl Edge[src]

pub fn connect(
    start: Arc<Mutex<dyn AbstAggregator + Send>>,
    start_idx: usize,
    end: Arc<Mutex<dyn AbstAggregator + Send>>,
    end_idx: usize
) -> Result<(), DErr>
[src]

Connects some start node (start) from the output at index start_idx. To the node ends input pin at end_idx.

pub fn send<T>(&self, executor: Arc<Executor>, data: Box<T>) -> Result<(), DErr> where
    T: Any
[src]

Trait Implementations

impl Clone for Edge[src]

Auto Trait Implementations

impl RefUnwindSafe for Edge

impl Send for Edge

impl Sync for Edge

impl Unpin for Edge

impl UnwindSafe for Edge

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.