pub struct ConfigManagerImpl { /* private fields */ }
Trait Implementations§
Source§impl Component for ConfigManagerImpl
impl Component for ConfigManagerImpl
Source§impl ComponentDowncast<ConfigManagerImpl> for ConfigManagerImpl
impl ComponentDowncast<ConfigManagerImpl> for ConfigManagerImpl
Source§impl ComponentDowncast<ConfigManagerImpl> for dyn ConfigManager + Sync + Send
impl ComponentDowncast<ConfigManagerImpl> for dyn ConfigManager + Sync + Send
Source§impl ConfigManager for ConfigManagerImpl
impl ConfigManager for ConfigManagerImpl
Source§fn get_instance_config_location(&self) -> PathBuf
fn get_instance_config_location(&self) -> PathBuf
Returns the location of the configuration of the instance.
Source§fn set_instance_config_location(&self, instance_config_location: PathBuf)
fn set_instance_config_location(&self, instance_config_location: PathBuf)
Sets the location of the configuration of the instance.
Source§fn get_graphql_server_config_location(&self) -> PathBuf
fn get_graphql_server_config_location(&self) -> PathBuf
Returns the location of the configuration of the GraphQL server.
Source§fn set_graphql_server_config_location(
&self,
graphql_server_config_location: PathBuf,
)
fn set_graphql_server_config_location( &self, graphql_server_config_location: PathBuf, )
Sets the location of the configuration of the GraphQL server.
Source§fn get_plugins_config_location(&self) -> PathBuf
fn get_plugins_config_location(&self) -> PathBuf
Returns the location of the plugins configuration.
Source§fn set_plugins_config_location(&self, plugins_config_location: PathBuf)
fn set_plugins_config_location(&self, plugins_config_location: PathBuf)
Sets the location of the plugins configuration.
Source§fn get_remotes_config_location(&self) -> PathBuf
fn get_remotes_config_location(&self) -> PathBuf
Returns the location of the remotes configuration.
Source§fn set_remotes_config_location(&self, remotes_config_location: PathBuf)
fn set_remotes_config_location(&self, remotes_config_location: PathBuf)
Sets the location of the remotes configuration.
Source§fn get_instance_config(&self) -> InstanceConfig
fn get_instance_config(&self) -> InstanceConfig
Returns the configuration of the instance.
Source§fn set_instance_config(&self, instance_config: InstanceConfig)
fn set_instance_config(&self, instance_config: InstanceConfig)
Sets the configuration of the instance.
Source§fn read_instance_config(&self)
fn read_instance_config(&self)
Reads the configuration of the instance from file.
Source§fn set_instance_name(&self, instance_name: &str)
fn set_instance_name(&self, instance_name: &str)
Sets the instance name.
Source§fn set_instance_description(&self, instance_description: &str)
fn set_instance_description(&self, instance_description: &str)
Sets the instance description.
Source§fn get_graphql_server_config(&self) -> GraphQLServerConfig
fn get_graphql_server_config(&self) -> GraphQLServerConfig
Returns the configuration of the GraphQL server.
Source§fn set_graphql_server_config(&self, graphql_server_config: GraphQLServerConfig)
fn set_graphql_server_config(&self, graphql_server_config: GraphQLServerConfig)
Sets the configuration of the GraphQL server.
Source§fn read_graphql_server_config(&self)
fn read_graphql_server_config(&self)
Reads the configuration of the GraphQL server from file.
Source§fn set_graphql_hostname(&self, hostname: &str)
fn set_graphql_hostname(&self, hostname: &str)
Sets the host name.
Source§fn set_graphql_port(&self, port: u16)
fn set_graphql_port(&self, port: u16)
Sets the port.
Source§fn set_graphql_secure(&self, secure: bool)
fn set_graphql_secure(&self, secure: bool)
Enables / disables HTTPS.
Source§fn set_graphql_ssl_certificate_path(&self, ssl_certificate_path: &str)
fn set_graphql_ssl_certificate_path(&self, ssl_certificate_path: &str)
Sets the SSL certificate path.
Source§fn set_graphql_ssl_private_key_path(&self, ssl_private_key_path: &str)
fn set_graphql_ssl_private_key_path(&self, ssl_private_key_path: &str)
Sets the SSL private key path.
Source§fn set_graphql_shutdown_timeout(&self, shutdown_timeout: u64)
fn set_graphql_shutdown_timeout(&self, shutdown_timeout: u64)
Sets the timeout for graceful workers shutdown in seconds.
Source§fn set_graphql_workers(&self, workers: usize)
fn set_graphql_workers(&self, workers: usize)
Sets the number of workers.
Source§fn get_graphql_default_context_path(&self) -> Option<String>
fn get_graphql_default_context_path(&self) -> Option<String>
Returns the default context path which redirects the root context to a web resource provider.
Source§fn set_graphql_default_context_path(&self, default_context_path: String)
fn set_graphql_default_context_path(&self, default_context_path: String)
Sets the default context path which redirects the root context to a web resource provider.
Source§fn get_plugins_config(&self) -> PluginsConfig
fn get_plugins_config(&self) -> PluginsConfig
Returns the plugins configuration.
Source§fn set_plugins_config(&self, plugins_config: PluginsConfig)
fn set_plugins_config(&self, plugins_config: PluginsConfig)
Sets the plugins configuration.
Source§fn read_plugins_config(&self)
fn read_plugins_config(&self)
Reads the plugins configuration from file.
Source§fn set_disable_all_plugins(&self, disabled: bool)
fn set_disable_all_plugins(&self, disabled: bool)
Enables / disables all plugins.
Source§fn set_disabled_plugins(&self, disabled_plugins: Vec<String>)
fn set_disabled_plugins(&self, disabled_plugins: Vec<String>)
Sets the plugins to disable.
Source§fn set_enabled_plugins(&self, enabled_plugins: Vec<String>)
fn set_enabled_plugins(&self, enabled_plugins: Vec<String>)
Sets the plugins to enable. If set, set_disabled_plugins will have no effect.
Source§fn set_disable_hot_deploy(&self, disable_hot_deploy: bool)
fn set_disable_hot_deploy(&self, disable_hot_deploy: bool)
Enables / disables hot deploy.
Source§fn set_hot_deploy_location(&self, hot_deploy_location: Option<String>)
fn set_hot_deploy_location(&self, hot_deploy_location: Option<String>)
Sets the plugins hot deploy location.
Source§fn set_install_location(&self, install_location: Option<String>)
fn set_install_location(&self, install_location: Option<String>)
Sets the plugins install location.
Source§fn get_remotes_config(&self) -> RemotesConfig
fn get_remotes_config(&self) -> RemotesConfig
Returns the remotes.
Source§fn set_remotes_config(&self, remotes_config: RemotesConfig)
fn set_remotes_config(&self, remotes_config: RemotesConfig)
Sets the remotes configuration.
Source§fn read_remotes_config(&self)
fn read_remotes_config(&self)
Reads the remotes configuration from file.
Source§fn write_remotes_config(&self)
fn write_remotes_config(&self)
Writes the remotes configuration to file.
Source§impl Lifecycle for ConfigManagerImpl
impl Lifecycle for ConfigManagerImpl
Source§fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called at initialization
§fn post_init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn post_init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Called after initialization
impl Injectable for ConfigManagerImpl
Auto Trait Implementations§
impl !Freeze for ConfigManagerImpl
impl RefUnwindSafe for ConfigManagerImpl
impl Send for ConfigManagerImpl
impl Sync for ConfigManagerImpl
impl Unpin for ConfigManagerImpl
impl UnwindSafe for ConfigManagerImpl
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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