[−][src]Struct python_packaging::interpreter::PythonInterpreterConfig
Holds configuration of a Python interpreter.
This struct holds fields that are exposed by PyPreConfig
and
PyConfig
in the CPython API.
Other than the profile (which is used to initialize instances of
PyPreConfig
and PyConfig
), all fields are optional. Only fields
with Some(T)
will be updated from the defaults.
Fields
profile: PythonInterpreterProfile
Profile to use to initialize pre-config and config state of interpreter.
allocator: Option<Allocator>
See https://docs.python.org/3/c-api/init_config.html#c.PyPreConfig.allocator.
configure_locale: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyPreConfig.configure_locale.
coerce_c_locale: Option<CoerceCLocale>
See https://docs.python.org/3/c-api/init_config.html#c.PyPreConfig.coerce_c_locale.
coerce_c_locale_warn: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyPreConfig.coerce_c_locale_warn.
development_mode: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.dev_mode.
isolated: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyPreConfig.isolated.
legacy_windows_fs_encoding: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyPreConfig.legacy_windows_fs_encoding.
parse_argv: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyPreConfig.parse_argv.
use_environment: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.use_environment.
utf8_mode: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyPreConfig.utf8_mode.
argv: Option<Vec<OsString>>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.argv.
base_exec_prefix: Option<PathBuf>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.base_exec_prefix.
base_executable: Option<PathBuf>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.base_executable.
base_prefix: Option<PathBuf>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.base_prefix.
buffered_stdio: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.buffered_stdio.
bytes_warning: Option<BytesWarning>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.bytes_warning.
check_hash_pycs_mode: Option<CheckHashPYCsMode>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.check_hash_pycs_mode.
configure_c_stdio: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.configure_c_stdio.
dump_refs: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.dump_refs.
exec_prefix: Option<PathBuf>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.exec_prefix.
executable: Option<PathBuf>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.executable.
fault_handler: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.faulthandler.
filesystem_encoding: Option<String>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.filesystem_encoding.
filesystem_errors: Option<String>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.filesystem_errors.
hash_seed: Option<c_ulong>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.hash_seed.
home: Option<PathBuf>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.home.
import_time: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.import_time.
inspect: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.inspect.
install_signal_handlers: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.install_signal_handlers.
interactive: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.interactive.
legacy_windows_stdio: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.legacy_windows_stdio.
malloc_stats: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.malloc_stats.
module_search_paths: Option<Vec<PathBuf>>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.module_search_paths.
optimization_level: Option<BytecodeOptimizationLevel>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.optimization_level.
parser_debug: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.parser_debug.
pathconfig_warnings: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.pathconfig_warnings.
prefix: Option<PathBuf>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.prefix.
program_name: Option<PathBuf>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.program_name.
pycache_prefix: Option<PathBuf>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.pycache_prefix.
python_path_env: Option<String>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.pythonpath_env.
quiet: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.quiet.
run_command: Option<String>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.run_command.
run_filename: Option<PathBuf>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.run_filename.
run_module: Option<String>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.run_module.
show_alloc_count: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.show_alloc_count.
show_ref_count: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.show_ref_count.
site_import: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.site_import.
skip_first_source_line: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.skip_source_first_line.
stdio_encoding: Option<String>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.stdio_encoding.
stdio_errors: Option<String>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.stdio_errors.
tracemalloc: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.tracemalloc.
user_site_directory: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.user_site_directory.
verbose: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.verbose.
warn_options: Option<Vec<String>>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.warnoptions.
write_bytecode: Option<bool>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.write_bytecode.
x_options: Option<Vec<String>>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.xoptions.
Trait Implementations
impl Clone for PythonInterpreterConfig
[src]
fn clone(&self) -> PythonInterpreterConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PythonInterpreterConfig
[src]
impl Default for PythonInterpreterConfig
[src]
fn default() -> PythonInterpreterConfig
[src]
impl PartialEq<PythonInterpreterConfig> for PythonInterpreterConfig
[src]
fn eq(&self, other: &PythonInterpreterConfig) -> bool
[src]
fn ne(&self, other: &PythonInterpreterConfig) -> bool
[src]
impl StructuralPartialEq for PythonInterpreterConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for PythonInterpreterConfig
impl Send for PythonInterpreterConfig
impl Sync for PythonInterpreterConfig
impl Unpin for PythonInterpreterConfig
impl UnwindSafe for PythonInterpreterConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,