Trait almost_raft::Node[][src]

pub trait Node {
    type NodeType;
    #[must_use]
    fn send_message<'life0, 'async_trait>(
        &'life0 self,
        msg: Message<Self::NodeType>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn node_id(&self) -> &String; }

A Cluster node

Associated Types

type NodeType[src]

concrete node type

Loading content...

Required methods

#[must_use]
fn send_message<'life0, 'async_trait>(
    &'life0 self,
    msg: Message<Self::NodeType>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

send message to the node

fn node_id(&self) -> &String[src]

unique node identifier

Loading content...

Implementors

Loading content...