Trait paxakos::heartbeats::HeartbeatsBuilderExt
source · [−]pub trait HeartbeatsBuilderExt<I = ()> {
type Node: Node;
type DecoratedBuilder<C: Config<Node = Self::Node> + 'static>;
fn send_heartbeats<C>(self, config: C) -> Self::DecoratedBuilder<C>
where
C: Config<Node = Self::Node> + 'static;
}
Expand description
Extends NodeBuilder
to conveniently decorate a node with Heartbeats
.
Required Associated Types
type DecoratedBuilder<C: Config<Node = Self::Node> + 'static>
type DecoratedBuilder<C: Config<Node = Self::Node> + 'static>
Type of builder after Heartbeats
decoration is applied with config
C
.
Required Methods
fn send_heartbeats<C>(self, config: C) -> Self::DecoratedBuilder<C> where
C: Config<Node = Self::Node> + 'static,
fn send_heartbeats<C>(self, config: C) -> Self::DecoratedBuilder<C> where
C: Config<Node = Self::Node> + 'static,
Decorates the node with Heartbeats
using the given configuration.