pub type ValidatorPublicNetworkConfig = ValidatorPublicNetworkPreConfig<NetworkProtocol>;Expand description
The public network configuration for a validator.
Aliased Type§
pub struct ValidatorPublicNetworkConfig {
pub protocol: NetworkProtocol,
pub host: String,
pub port: u16,
}Fields§
§protocol: NetworkProtocolThe network protocol to use for the validator frontend.
host: StringThe host name of the validator (IP or hostname).
port: u16The port the validator listens on.
Implementations§
Source§impl ValidatorPublicNetworkConfig
impl ValidatorPublicNetworkConfig
Sourcepub fn http_address(&self) -> String
pub fn http_address(&self) -> String
Returns the public HTTP URL of the validator.