Trait Bootstrap

Source
pub trait Bootstrap:
    'static
    + Send
    + Sync
    + Debug {
    // Required method
    fn put(&self, info: Arc<AgentInfoSigned>);
}
Expand description

Method for bootstrapping WAN discovery of peers.

The internal implementation will take care of whatever polling or managing of message queues is required to be notified of remote peers both on initialization and over runtime.

Required Methods§

Source

fn put(&self, info: Arc<AgentInfoSigned>)

Put an agent info onto a bootstrap server.

This method takes responsibility for retrying the send operation in the case of server error until such time as:

  • the Put succeeds
  • we receive a new info that supersedes the previous
  • or the info expires

Implementors§