pub struct ServerConfig {
pub config_path: Option<PathBuf>,
pub resolved_config_dir: PathBuf,
pub server_config_file_path: PathBuf,
pub server_config_file_present: bool,
pub file_config: ServerConfigFile,
pub stats_db_path: PathBuf,
pub rnsd_bin: PathBuf,
pub sentineld_bin: PathBuf,
pub statsd_bin: PathBuf,
pub http: HttpConfig,
pub rnsd_rpc_addr: SocketAddr,
}Fields§
§config_path: Option<PathBuf>§resolved_config_dir: PathBuf§server_config_file_path: PathBuf§server_config_file_present: bool§file_config: ServerConfigFile§stats_db_path: PathBuf§rnsd_bin: PathBuf§sentineld_bin: PathBuf§statsd_bin: PathBuf§http: HttpConfig§rnsd_rpc_addr: SocketAddrImplementations§
Source§impl ServerConfig
impl ServerConfig
pub fn from_args(args: &Args) -> Self
pub fn validate_json_with_current_context( &self, body: &[u8], ) -> Result<ServerConfigValidationSnapshot, String>
pub fn mutate_json_with_current_context( &self, mode: ServerConfigMutationMode, body: &[u8], control_tx: Option<Sender<ProcessControlCommand>>, ) -> Result<ServerConfigMutationResult, String>
pub fn supervisor_config( &self, shared_state: Option<SharedState>, control_rx: Option<Receiver<ProcessControlCommand>>, ) -> SupervisorConfig
pub fn ensure_runtime_bootstrap(&self) -> Result<(), String>
pub fn process_specs(&self) -> Vec<ProcessSpec>
pub fn snapshot(&self) -> ServerConfigSnapshot
pub fn schema_snapshot(&self) -> ServerConfigSchemaSnapshot
pub fn http_enabled(&self) -> bool
pub fn ctl_args(&self, verbosity: u8) -> Args
pub fn control_http_command_line(&self) -> String
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
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 moreAuto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
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>
Converts
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>
Converts
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