[−][src]Struct dager::edge::Edge
An edge which transports data. The type id can be retrieved at runtime via the type id
Fields
type_id: TypeId
start_node: Arc<Mutex<dyn AbstAggregator + Send>>
start_idx: usize
end_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]
start: Arc<Mutex<dyn AbstAggregator + Send>>,
start_idx: usize,
end: Arc<Mutex<dyn AbstAggregator + Send>>,
end_idx: usize
) -> Result<(), DErr>
Connects some start node (start
) from the output at index start_idx
. To the node end
s input pin at end_idx
.
pub fn send<T>(&self, executor: Arc<Executor>, data: Box<T>) -> Result<(), DErr> where
T: Any,
[src]
T: Any,
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,