Struct ate::conf::ConfMesh[][src]

pub struct ConfMesh {
    pub clusters: Vec<ConfCluster>,
    pub force_client_only: bool,
    pub force_listen: Option<MeshAddress>,
}

Configuration of a particular mesh that contains one of more chains

Fields

clusters: Vec<ConfCluster>

When running a distributed ATE datastore in a mesh configuration then one more clusters can be specified here. Each cluster represents a replication target hence scaling out clusters increasing capacity while scaling more clusters creates data replication for improved resilience. If you do not specific any clusters ATE will run in local machine mode.

force_client_only: bool

Forces ATE to act as a client even if its local IP address is one of the node machines in the clusters (normally ATE would automatically listen for connections)

force_listen: Option<MeshAddress>

Forces ATE to listen on a particular address for connections even if the address is not in the list of cluster nodes.

Implementations

impl ConfMesh[src]

pub fn solo(addr: &str, port: u16) -> ConfMesh[src]

Represents a single server listening on all available addresses. All chains will be stored locally to this server and there is no replication

Trait Implementations

impl Clone for ConfMesh[src]

impl Debug for ConfMesh[src]

impl Default for ConfMesh[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,