Struct pyembed::PythonInterpreterConfig [−][src]
pub struct PythonInterpreterConfig {}Show fields
pub profile: PythonInterpreterProfile, pub allocator: Option<Allocator>, pub configure_locale: Option<bool>, pub coerce_c_locale: Option<CoerceCLocale>, pub coerce_c_locale_warn: Option<bool>, pub development_mode: Option<bool>, pub isolated: Option<bool>, pub legacy_windows_fs_encoding: Option<bool>, pub parse_argv: Option<bool>, pub use_environment: Option<bool>, pub utf8_mode: Option<bool>, pub argv: Option<Vec<OsString, Global>>, pub base_exec_prefix: Option<PathBuf>, pub base_executable: Option<PathBuf>, pub base_prefix: Option<PathBuf>, pub buffered_stdio: Option<bool>, pub bytes_warning: Option<BytesWarning>, pub check_hash_pycs_mode: Option<CheckHashPycsMode>, pub configure_c_stdio: Option<bool>, pub dump_refs: Option<bool>, pub exec_prefix: Option<PathBuf>, pub executable: Option<PathBuf>, pub fault_handler: Option<bool>, pub filesystem_encoding: Option<String>, pub filesystem_errors: Option<String>, pub hash_seed: Option<u64>, pub home: Option<PathBuf>, pub import_time: Option<bool>, pub inspect: Option<bool>, pub install_signal_handlers: Option<bool>, pub interactive: Option<bool>, pub legacy_windows_stdio: Option<bool>, pub malloc_stats: Option<bool>, pub module_search_paths: Option<Vec<PathBuf, Global>>, pub optimization_level: Option<BytecodeOptimizationLevel>, pub parser_debug: Option<bool>, pub pathconfig_warnings: Option<bool>, pub prefix: Option<PathBuf>, pub program_name: Option<PathBuf>, pub pycache_prefix: Option<PathBuf>, pub python_path_env: Option<String>, pub quiet: Option<bool>, pub run_command: Option<String>, pub run_filename: Option<PathBuf>, pub run_module: Option<String>, pub show_ref_count: Option<bool>, pub site_import: Option<bool>, pub skip_first_source_line: Option<bool>, pub stdio_encoding: Option<String>, pub stdio_errors: Option<String>, pub tracemalloc: Option<bool>, pub user_site_directory: Option<bool>, pub verbose: Option<bool>, pub warn_options: Option<Vec<String, Global>>, pub write_bytecode: Option<bool>, pub x_options: Option<Vec<String, Global>>,
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, Global>>
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<u64>
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, Global>>
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_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, Global>>
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, Global>>
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.xoptions.
Trait Implementations
impl Clone for PythonInterpreterConfig
[src]
impl Clone for PythonInterpreterConfig
[src]pub fn clone(&self) -> PythonInterpreterConfig
[src]
pub fn clone(&self) -> PythonInterpreterConfig
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for PythonInterpreterConfig
[src]
impl Debug for PythonInterpreterConfig
[src]impl Default for PythonInterpreterConfig
[src]
impl Default for PythonInterpreterConfig
[src]pub fn default() -> PythonInterpreterConfig
[src]
pub fn default() -> PythonInterpreterConfig
[src]Returns the “default value” for a type. Read more
impl PartialEq<PythonInterpreterConfig> for PythonInterpreterConfig
[src]
impl PartialEq<PythonInterpreterConfig> for PythonInterpreterConfig
[src]pub fn eq(&self, other: &PythonInterpreterConfig) -> bool
[src]
pub fn eq(&self, other: &PythonInterpreterConfig) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &PythonInterpreterConfig) -> bool
[src]
pub fn ne(&self, other: &PythonInterpreterConfig) -> bool
[src]This method tests for !=
.
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more