pub struct GossipConfig {
pub enabled: bool,
pub bind: String,
pub seeds: Vec<String>,
pub node_name: String,
pub identity_key: Option<PathBuf>,
pub peer_keys: Vec<PathBuf>,
pub peer_identities: BTreeMap<String, PathBuf>,
}Fields§
§enabled: bool§bind: String§seeds: Vec<String>§node_name: String§identity_key: Option<PathBuf>Ed25519 PKCS#8 private key for signing outbound broadcasts (FPT_ITT.1). When set, every custom broadcast this node emits is signed.
peer_keys: Vec<PathBuf>Deprecated unbound key list. Nonempty values fail startup with migration instructions; use peer_identities to authorize each key’s node identity.
peer_identities: BTreeMap<String, PathBuf>Authorized node name to Ed25519 SPKI public key.
Trait Implementations§
Source§impl Clone for GossipConfig
impl Clone for GossipConfig
Source§fn clone(&self) -> GossipConfig
fn clone(&self) -> GossipConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GossipConfig
impl Debug for GossipConfig
Source§impl Default for GossipConfig
impl Default for GossipConfig
Source§impl<'de> Deserialize<'de> for GossipConfig
impl<'de> Deserialize<'de> for GossipConfig
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 Freeze for GossipConfig
impl RefUnwindSafe for GossipConfig
impl Send for GossipConfig
impl Sync for GossipConfig
impl Unpin for GossipConfig
impl UnsafeUnpin for GossipConfig
impl UnwindSafe for GossipConfig
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