Trait paxakos::delegate::DelegateBuilderExt
source · pub trait DelegateBuilderExt<I = ()> {
type Node: LeadershipAwareNode<I> + NodeImpl + 'static;
type DecoratedBuilder<C: Config<Node = Self::Node> + 'static>;
fn delegate<C>(self, config: C) -> Self::DecoratedBuilder<C>
where
C: Config<Node = Self::Node> + 'static;
}
Expand description
Extends NodeBuilder
to conveniently decorate a node with Delegate
.
Required Associated Types
sourcetype Node: LeadershipAwareNode<I> + NodeImpl + 'static
type Node: LeadershipAwareNode<I> + NodeImpl + 'static
Node type to be decorated.
type DecoratedBuilder<C: Config<Node = Self::Node> + 'static>
Required Methods
sourcefn delegate<C>(self, config: C) -> Self::DecoratedBuilder<C>where
C: Config<Node = Self::Node> + 'static,
fn delegate<C>(self, config: C) -> Self::DecoratedBuilder<C>where
C: Config<Node = Self::Node> + 'static,
Decorates the node with Delegate
using the given configuration.