pub struct PeerDiscovery {
pub node_id: String,
pub hostname: String,
pub ip: IpAddr,
pub port: u16,
}Expand description
Information about a discovered peer validator
Fields§
§node_id: StringUnique identifier for the validator node
hostname: StringHostname (FQDN) of the validator
ip: IpAddrIP address of the validator
port: u16Port on which the validator is listening
Trait Implementations§
Source§impl Clone for PeerDiscovery
impl Clone for PeerDiscovery
Source§fn clone(&self) -> PeerDiscovery
fn clone(&self) -> PeerDiscovery
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 moreAuto Trait Implementations§
impl Freeze for PeerDiscovery
impl RefUnwindSafe for PeerDiscovery
impl Send for PeerDiscovery
impl Sync for PeerDiscovery
impl Unpin for PeerDiscovery
impl UnsafeUnpin for PeerDiscovery
impl UnwindSafe for PeerDiscovery
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