pub struct Server {Show 18 fields
pub service: ServerSubcommand,
pub listen_addresses: String,
pub listen_port: u16,
pub listen_port_v6: Option<u16>,
pub enr_addresses: Option<String>,
pub enr_v4_port: Option<u16>,
pub enr_v6_port: Option<u16>,
pub enr_seq_no: Option<String>,
pub enr_eth2: Option<String>,
pub enr_default: bool,
pub static_key: bool,
pub secp256k1_key: Option<String>,
pub enr: Option<String>,
pub peer_update_min: u64,
pub break_time: u64,
pub stats: u64,
pub no_search: bool,
pub bootstrap: Option<String>,
}Expand description
Server Command
Fields§
§service: ServerSubcommandThe service to run once the server is started.
listen_addresses: StringSpecifies the listening address of the server.
listen_port: u16Specifies the listening UDP port of the server.
listen_port_v6: Option<u16>Optionally specify the listening ipv6 port.
enr_addresses: Option<String>Specifies the IP address of the ENR record. Not specifying this results in an ENR with no IP field, unless the -w switch is used.
enr_v4_port: Option<u16>Specifies the UDP port of the ENR record. Not specifying this results in an ENR with no UDP field, unless the -w switch is used.
enr_v6_port: Option<u16>The port associated with an ipv6 address.
enr_seq_no: Option<String>Specifies the ENR sequence number when creating the ENR.
enr_eth2: Option<String>Specifies the Eth2 field as ssz encoded hex bytes.
enr_default: boolThe Enr IP address and port will be the same as the specified listening address and port.
static_key: boolUse a fixed static key (hard-coded). This is primarily for debugging.
secp256k1_key: Option<String>Specify a secp256k1 private key (hex encoded) to use for the nodes identity.
enr: Option<String>A base64 ENR that this node will initially connect to.
peer_update_min: u64The minimum number of peers required to update the IP address. Cannot be less than 2.
break_time: u64The time to wait between successive searches. Default is 10 seconds.
stats: u64Displays statistics on the local routing table.
no_search: boolPrevents the server from doing any peer searches.
bootstrap: Option<String>Bootstraps the server peers
Trait Implementations§
Source§impl Args for Server
impl Args for Server
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for Server
impl FromArgMatches for Server
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Ord for Server
impl Ord for Server
Source§impl PartialOrd for Server
impl PartialOrd for Server
impl Eq for Server
impl StructuralPartialEq for Server
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more