[][src]Struct timely::dataflow::scopes::child::Child

pub struct Child<'a, G, T> where
    G: ScopeParent,
    T: Timestamp + Refines<G::Timestamp>, 
{ pub subgraph: &'a RefCell<SubgraphBuilder<G::Timestamp, T>>, pub parent: G, pub logging: Option<Logger>, }

A Child wraps a Subgraph and a parent G: Scope. It manages the addition of Operates to a subgraph, and the connection of edges between them.

Fields

subgraph: &'a RefCell<SubgraphBuilder<G::Timestamp, T>>

The subgraph under assembly.

parent: G

A copy of the child's parent scope.

logging: Option<Logger>

The log writer for this scope.

Methods

impl<'a, G, T> Child<'a, G, T> where
    G: ScopeParent,
    T: Timestamp + Refines<G::Timestamp>, 
[src]

pub fn index(&self) -> usize[src]

This worker's unique identifier.

Ranges from 0 to self.peers() - 1.

pub fn peers(&self) -> usize[src]

The total number of workers in the computation.

Trait Implementations

impl<'a, G, T> AsWorker for Child<'a, G, T> where
    G: ScopeParent,
    T: Timestamp + Refines<G::Timestamp>, 
[src]

impl<'a, G, T> ScopeParent for Child<'a, G, T> where
    G: ScopeParent,
    T: Timestamp + Refines<G::Timestamp>, 
[src]

type Timestamp = T

The timestamp associated with data in this scope.

impl<'a, G, T> Scope for Child<'a, G, T> where
    G: ScopeParent,
    T: Timestamp + Refines<G::Timestamp>, 
[src]

impl<'a, G, T> Scheduler for Child<'a, G, T> where
    G: ScopeParent,
    T: Timestamp + Refines<G::Timestamp>, 
[src]

impl<'a, G, T> Clone for Child<'a, G, T> where
    G: ScopeParent,
    T: Timestamp + Refines<G::Timestamp>, 
[src]

Auto Trait Implementations

impl<'a, G, T> !Send for Child<'a, G, T>

impl<'a, G, T> !Sync for Child<'a, G, T>

impl<'a, G, T> Unpin for Child<'a, G, T> where
    G: Unpin

impl<'a, G, T> !UnwindSafe for Child<'a, G, T>

impl<'a, G, T> !RefUnwindSafe for Child<'a, G, T>

Blanket Implementations

impl<G> Input for G where
    G: Scope,
    <G as ScopeParent>::Timestamp: TotalOrder
[src]

impl<G> UnorderedInput<G> for G where
    G: Scope
[src]

impl<G> Feedback<G> for G where
    G: Scope
[src]

impl<G, D> Concatenate<G, D> for G where
    D: Data,
    G: Scope
[src]

impl<T> Data for T where
    T: 'static + Clone
[src]

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

impl<T> From<T> for 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.

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

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

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