[][src]Struct dager::node::Aggregator

pub struct Aggregator<I: IntoIoSignature, O: IntoIoSignature> { /* fields omitted */ }

The Aggregator is put "around" some implementation of Node. It handles waiting for data, edge assignment as well as using default data provided by the nodes default() function if no edge is supplied for some port.

Implementations

impl<I, O> Aggregator<I, O> where
    I: IntoIoSignature,
    O: IntoIoSignature
[src]

pub fn from_node<N>(node: N) -> Self where
    N: Node<InSig = I, OutSig = O> + Send + 'static, 
[src]

Creates this aggregator from some Node implementing object. Takes ownership of that node. If that is not desired, use the from_arc() function.

pub fn from_arc<N>(node: Arc<Mutex<N>>) -> Self where
    N: Node<InSig = I, OutSig = O> + Send + 'static, 
[src]

Trait Implementations

impl<I, O> AbstAggregator for Aggregator<I, O> where
    I: IntoIoSignature,
    O: IntoIoSignature
[src]

impl<O> Executable for Aggregator<(), O> where
    O: IntoIoSignature
[src]

Auto Trait Implementations

impl<I, O> RefUnwindSafe for Aggregator<I, O> where
    <I as IntoIoSignature>::InSig: RefUnwindSafe,
    <O as IntoIoSignature>::OutSig: RefUnwindSafe

impl<I, O> Send for Aggregator<I, O> where
    <I as IntoIoSignature>::InSig: Send,
    <O as IntoIoSignature>::OutSig: Send

impl<I, O> Sync for Aggregator<I, O> where
    <I as IntoIoSignature>::InSig: Sync,
    <O as IntoIoSignature>::OutSig: Sync

impl<I, O> Unpin for Aggregator<I, O> where
    <I as IntoIoSignature>::InSig: Unpin,
    <O as IntoIoSignature>::OutSig: Unpin

impl<I, O> UnwindSafe for Aggregator<I, O> where
    <I as IntoIoSignature>::InSig: UnwindSafe,
    <O as IntoIoSignature>::OutSig: UnwindSafe

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, 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.