Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::FeatureSettings Struct Reference
Inheritance diagram for nix::FeatureSettings:
nix::Config nix::AbstractConfig

Public Member Functions

bool isEnabled (const ExperimentalFeature &) const
void require (const ExperimentalFeature &) const
bool isEnabled (const std::optional< ExperimentalFeature > &) const
void require (const std::optional< ExperimentalFeature > &) const
bool isEnabled (const DeprecatedFeature &) const
void require (const DeprecatedFeature &) const
bool isEnabled (const std::optional< DeprecatedFeature > &) const
void require (const std::optional< DeprecatedFeature > &) const
Public Member Functions inherited from nix::Config
 Config (StringMap initials={})
bool set (const std::string &name, const std::string &value, const ApplyConfigOptions &options={}) override
void addSetting (AbstractSetting *setting)
void getSettings (std::map< std::string, SettingInfo > &res, bool overriddenOnly=false) override
void resetOverridden () override
JSON toJSON () override
void convertToArgs (Args &args, const std::string &category) override
Public Member Functions inherited from nix::AbstractConfig
void applyConfig (const std::string &contents, const ApplyConfigOptions &options={})
void warnUnknownSettings ()
void reapplyUnknownSettings ()

Additional Inherited Members

Public Types inherited from nix::Config
using Settings = std::map<std::string, SettingData>
Protected Member Functions inherited from nix::AbstractConfig
 AbstractConfig (StringMap initials={})
Protected Attributes inherited from nix::AbstractConfig
StringMap unknownSettings

Member Function Documentation

◆ isEnabled() [1/4]

bool nix::FeatureSettings::isEnabled ( const DeprecatedFeature & feature) const

Check whether the given deprecated feature is enabled.

◆ isEnabled() [2/4]

bool nix::FeatureSettings::isEnabled ( const ExperimentalFeature & feature) const

Check whether the given experimental feature is enabled.

◆ isEnabled() [3/4]

bool nix::FeatureSettings::isEnabled ( const std::optional< DeprecatedFeature > & feature) const

std::nullopt pointer means no feature, which means there is nothing that could be disabled, and so the function returns true in that case.

◆ isEnabled() [4/4]

bool nix::FeatureSettings::isEnabled ( const std::optional< ExperimentalFeature > & feature) const

std::nullopt pointer means no feature, which means there is nothing that could be disabled, and so the function returns true in that case.

◆ require() [1/4]

void nix::FeatureSettings::require ( const DeprecatedFeature & feature) const

Require an deprecated feature be enabled, throwing an error if it is not.

◆ require() [2/4]

void nix::FeatureSettings::require ( const ExperimentalFeature & feature) const

Require an experimental feature be enabled, throwing an error if it is not.

◆ require() [3/4]

void nix::FeatureSettings::require ( const std::optional< DeprecatedFeature > & feature) const

std::nullopt pointer means no feature, which means there is nothing that could be disabled, and so the function does nothing in that case.

◆ require() [4/4]

void nix::FeatureSettings::require ( const std::optional< ExperimentalFeature > & feature) const

std::nullopt pointer means no feature, which means there is nothing that could be disabled, and so the function does nothing in that case.


The documentation for this struct was generated from the following files:
  • lix/libutil/config.hh
  • lix/libutil/config.cc