[][src]Trait paxakos::NodeBuilder

pub trait NodeBuilder: Sized {
    type Node: 'static + Node;
    type Future: Future<Output = Result<(RequestHandlerFor<Self::Node>, Self::Node), SpawnError>>;
    fn decorated_with<D>(
        self,
        arguments: <D as Decoration>::Arguments
    ) -> NodeBuilderWithAll<D>
    where
        D: Decoration<Decorated = Self::Node, State = StateOf<Self::Node>, Communicator = CommunicatorOf<Self::Node>>
;
fn spawn_in(self, context: ContextOf<StateOf<Self::Node>>) -> Self::Future; fn spawn(self) -> Self::Future
    where
        <Self::Node as Node>::State: State<Context = ()>
, { ... } }

Builder to spawn a Node.

This API is badly desgined. Please have a look at and follow the documentation of node_builder().

Associated Types

type Node: 'static + Node

type Future: Future<Output = Result<(RequestHandlerFor<Self::Node>, Self::Node), SpawnError>>

Loading content...

Required methods

fn decorated_with<D>(
    self,
    arguments: <D as Decoration>::Arguments
) -> NodeBuilderWithAll<D> where
    D: Decoration<Decorated = Self::Node, State = StateOf<Self::Node>, Communicator = CommunicatorOf<Self::Node>>, 

fn spawn_in(self, context: ContextOf<StateOf<Self::Node>>) -> Self::Future

Loading content...

Provided methods

fn spawn(self) -> Self::Future where
    <Self::Node as Node>::State: State<Context = ()>, 

Loading content...

Implementors

impl<N: 'static + Node> NodeBuilder for NodeBuilderWithAll<N>[src]

type Node = N

type Future = LocalBoxFuture<'static, Result<(RequestHandlerFor<N>, N), SpawnError>>

Loading content...