pub struct StaticPeerConfig {
pub node_id: String,
pub addresses: Vec<String>,
pub relay_url: Option<String>,
pub priority: u8,
pub metadata: HashMap<String, String>,
}Expand description
Configuration for a static peer
Fields§
§node_id: StringUnique node identifier
addresses: Vec<String>Network addresses where peer can be reached
relay_url: Option<String>Optional relay URL for NAT traversal
priority: u8Connection priority (0-255, higher = more important)
metadata: HashMap<String, String>Additional metadata about the peer
Trait Implementations§
Source§impl Clone for StaticPeerConfig
impl Clone for StaticPeerConfig
Source§fn clone(&self) -> StaticPeerConfig
fn clone(&self) -> StaticPeerConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 StaticPeerConfig
impl Debug for StaticPeerConfig
Source§impl<'de> Deserialize<'de> for StaticPeerConfig
impl<'de> Deserialize<'de> for StaticPeerConfig
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 StaticPeerConfig
impl RefUnwindSafe for StaticPeerConfig
impl Send for StaticPeerConfig
impl Sync for StaticPeerConfig
impl Unpin for StaticPeerConfig
impl UnsafeUnpin for StaticPeerConfig
impl UnwindSafe for StaticPeerConfig
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