[]Struct bastion::prelude::Cluster

pub struct Cluster {
    pub events: Receiver<(Vec<ArtilleryMember>, ArtilleryMemberEvent)>,
    // some fields omitted
}

Fields

events: Receiver<(Vec<ArtilleryMember>, ArtilleryMemberEvent)>

Implementations

impl Cluster

pub fn new_cluster(
    host_key: Uuid,
    config: ClusterConfig
) -> Result<(Cluster, RecoverableHandle<()>), ArtilleryError>

pub fn add_seed_node(&self, addr: SocketAddr)

pub fn send_payload<T>(&self, id: Uuid, msg: T) where
    T: AsRef<str>, 

pub fn leave_cluster(&self)

Trait Implementations

impl Debug for Cluster

impl Drop for Cluster

impl Future for Cluster

type Output = (Vec<ArtilleryMember>, ArtilleryMemberEvent)

The type of value produced on completion.

impl Send for Cluster

impl Sync for Cluster

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any
[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> FutureExt for T where
    T: Future + ?Sized
[src]

impl<T> FutureExt for T where
    T: Future + ?Sized

impl<T> FutureExt for T where
    T: Future + ?Sized

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

impl<T> Message for T where
    T: Any + Send + Sync + Debug
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> State for T where
    T: Send + Sync + 'static, 
[src]

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>,