Trait paxakos::heartbeats::HeartbeatsBuilderExt [−][src]
pub trait HeartbeatsBuilderExt<I = ()> {
type Node: MaybeLeadershipAwareNode<I> + 'static;
type Voter: Voter;
type Buffer: Buffer;
fn send_heartbeats<C>(
self,
config: C
) -> NodeBuilder<Heartbeats<Self::Node, C, I>, Self::Voter, Self::Buffer>
where
C: Config<Node = Self::Node> + 'static;
}
Expand description
Extends NodeBuilder
to conveniently decorate a node with Heartbeats
.
Associated Types
type Node: MaybeLeadershipAwareNode<I> + 'static
type Node: MaybeLeadershipAwareNode<I> + 'static
Node type to be decorated.
Required methods
fn send_heartbeats<C>(
self,
config: C
) -> NodeBuilder<Heartbeats<Self::Node, C, I>, Self::Voter, Self::Buffer> where
C: Config<Node = Self::Node> + 'static,
fn send_heartbeats<C>(
self,
config: C
) -> NodeBuilder<Heartbeats<Self::Node, C, I>, Self::Voter, Self::Buffer> where
C: Config<Node = Self::Node> + 'static,
Decorates the node with Heartbeats
using the given configuration.