Struct diem_config::config::Peer [−][src]
pub struct Peer {
pub addresses: Vec<NetworkAddress>,
pub keys: HashSet<PublicKey>,
pub role: PeerRole,
}Expand description
Represents a single seed configuration for a seed peer
Fields
addresses: Vec<NetworkAddress>keys: HashSet<PublicKey>role: PeerRoleImplementations
Combines Vec<NetworkAddress> keys with the HashSet given
Combines two Peer. Note: Does not merge duplicate addresses
TODO: Instead of rejecting, maybe pick one of the roles?
Trait Implementations
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 Peer
impl UnwindSafe for Peer
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.