pub struct DatacakeNodeBuilder<S = DCAwareSelector> { /* private fields */ }
Expand description

Build a Datacake node using provided settings.

Implementations§

Create a new node builder.

Set a node selector.

This is used by systems to select a specific set of nodes from the live membership set with a given consistency level.

Set the cluster id for the given node.

Set the data center the node belongs to.

Starts the Datacake cluster, connecting to the targeted seed nodes.

When connecting to the cluster, the node_id must be unique otherwise the cluster will incorrectly propagate state and not become consistent.

Typically you will only have one cluster and therefore only have one cluster_id which should be the same for each node in the cluster. Currently the cluster_id is not handled by anything other than chitchat

No seed nodes need to be live at the time of connecting for the cluster to start correctly, but they are required in order for nodes to discover one-another and share their basic state.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Gets the layout of the type.
The type for metadata in pointers and references to Self.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more