pub struct ServerConfigOpts {Show 21 fields
pub advertise_host: String,
pub bind: String,
pub tcp_port: u16,
pub quic_port: u16,
pub cert: Option<String>,
pub key: Option<String>,
pub token: Option<String>,
pub secret_dir: Option<String>,
pub profile: String,
pub manager_name: Option<String>,
pub max_connections: usize,
pub max_conn_rate: usize,
pub conn_rate_interval: Duration,
pub max_worker_conn_rate: usize,
pub worker_conn_rate_interval: Duration,
pub handshake_timeout_ms: u64,
pub worker_whitelist: Option<Vec<String>>,
pub manager_whitelist: Option<Vec<String>>,
pub max_workers: Option<u32>,
pub peers: Vec<ManagerPeerEntry>,
pub test_disable_listeners: bool,
}Expand description
Options for configuring the manager server.
Fields§
§advertise_host: String§bind: String§tcp_port: u16§quic_port: u16§cert: Option<String>§key: Option<String>§token: Option<String>§secret_dir: Option<String>§profile: String§manager_name: Option<String>§max_connections: usize§max_conn_rate: usize§conn_rate_interval: Duration§max_worker_conn_rate: usize§worker_conn_rate_interval: Duration§handshake_timeout_ms: u64§worker_whitelist: Option<Vec<String>>§manager_whitelist: Option<Vec<String>>§max_workers: Option<u32>§peers: Vec<ManagerPeerEntry>§test_disable_listeners: boolTest-only: disable network listeners to speed up non-network tests
Trait Implementations§
Source§impl Clone for ServerConfigOpts
impl Clone for ServerConfigOpts
Source§fn clone(&self) -> ServerConfigOpts
fn clone(&self) -> ServerConfigOpts
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 ServerConfigOpts
impl Debug for ServerConfigOpts
Auto Trait Implementations§
impl Freeze for ServerConfigOpts
impl RefUnwindSafe for ServerConfigOpts
impl Send for ServerConfigOpts
impl Sync for ServerConfigOpts
impl Unpin for ServerConfigOpts
impl UnwindSafe for ServerConfigOpts
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