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
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]
#[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,
send message to the node
fn node_id(&self) -> &String
[src]
unique node identifier