Struct ConfigManagerImpl

Source
pub struct ConfigManagerImpl { /* private fields */ }

Trait Implementations§

Source§

impl Component for ConfigManagerImpl

Source§

fn create( instance_provider: &mut dyn ComponentInstanceProvider, ) -> Result<Self, ComponentInstanceProviderError>

Creates an instance of this component using dependencies from given [ComponentInstanceProvider].
Source§

impl ComponentDowncast<ConfigManagerImpl> for ConfigManagerImpl

Source§

fn downcast( source: ComponentInstanceAnyPtr, ) -> Result<ComponentInstancePtr<Self>, ComponentInstanceAnyPtr>

Source§

impl ComponentDowncast<ConfigManagerImpl> for dyn ConfigManager + Sync + Send

Source§

fn downcast( source: ComponentInstanceAnyPtr, ) -> Result<ComponentInstancePtr<Self>, ComponentInstanceAnyPtr>

Source§

impl ConfigManager for ConfigManagerImpl

Source§

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)

Sets the location of the configuration of the instance.
Source§

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, )

Sets the location of the configuration of the GraphQL server.
Source§

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)

Sets the location of the plugins configuration.
Source§

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)

Sets the location of the remotes configuration.
Source§

fn get_instance_config(&self) -> InstanceConfig

Returns the configuration of the instance.
Source§

fn set_instance_config(&self, instance_config: InstanceConfig)

Sets the configuration of the instance.
Source§

fn read_instance_config(&self)

Reads the configuration of the instance from file.
Source§

fn set_instance_name(&self, instance_name: &str)

Sets the instance name.
Source§

fn set_instance_description(&self, instance_description: &str)

Sets the instance description.
Source§

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)

Sets the configuration of the GraphQL server.
Source§

fn read_graphql_server_config(&self)

Reads the configuration of the GraphQL server from file.
Source§

fn set_graphql_hostname(&self, hostname: &str)

Sets the host name.
Source§

fn set_graphql_port(&self, port: u16)

Sets the port.
Source§

fn set_graphql_secure(&self, secure: bool)

Enables / disables HTTPS.
Source§

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)

Sets the SSL private key path.
Source§

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)

Sets the number of workers.
Source§

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)

Sets the default context path which redirects the root context to a web resource provider.
Source§

fn get_plugins_config(&self) -> PluginsConfig

Returns the plugins configuration.
Source§

fn set_plugins_config(&self, plugins_config: PluginsConfig)

Sets the plugins configuration.
Source§

fn read_plugins_config(&self)

Reads the plugins configuration from file.
Source§

fn set_disable_all_plugins(&self, disabled: bool)

Enables / disables all plugins.
Source§

fn set_disabled_plugins(&self, disabled_plugins: Vec<String>)

Sets the plugins to disable.
Source§

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)

Enables / disables hot deploy.
Source§

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>)

Sets the plugins install location.
Source§

fn get_remotes_config(&self) -> RemotesConfig

Returns the remotes.
Source§

fn set_remotes_config(&self, remotes_config: RemotesConfig)

Sets the remotes configuration.
Source§

fn read_remotes_config(&self)

Reads the remotes configuration from file.
Source§

fn write_remotes_config(&self)

Writes the remotes configuration to file.
Source§

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,

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,

Called after initialization
§

fn pre_shutdown<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Called before shutdown
§

fn shutdown<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Called for shutdown
Source§

impl Injectable for ConfigManagerImpl

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more