Struct jormungandr_lib::interfaces::Bootstrap
source · pub struct Bootstrap {
pub trusted_peers: Vec<TrustedPeer>,
pub max_bootstrap_attempts: Option<usize>,
pub node_key_file: Option<PathBuf>,
}
Expand description
Bootstrap contains meta data for initial startup
Fields§
§trusted_peers: Vec<TrustedPeer>
the rendezvous points for the peer to connect to in order to initiate the p2p discovery from.
max_bootstrap_attempts: Option<usize>
§node_key_file: Option<PathBuf>
File with the secret key used to advertise and authenticate the node
Trait Implementations§
source§impl<'de> Deserialize<'de> for Bootstrap
impl<'de> Deserialize<'de> for Bootstrap
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Bootstrap
impl Send for Bootstrap
impl Sync for Bootstrap
impl Unpin for Bootstrap
impl UnwindSafe for Bootstrap
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more