Enum pyembed::PythonInterpreterProfile
source · [−]pub enum PythonInterpreterProfile {
Isolated,
Python,
}
Expand description
Defines the profile to use to configure a Python interpreter.
This effectively provides a template for seeding the initial values of
PyPreConfig
and PyConfig
C structs.
Serialization type: string
.
Variants
Isolated
Python is isolated from the system.
See https://docs.python.org/3/c-api/init_config.html#isolated-configuration.
Serialized value: isolated
Python
Python interpreter behaves like python
.
See https://docs.python.org/3/c-api/init_config.html#python-configuration.
Serialized value: python
Trait Implementations
sourceimpl Clone for PythonInterpreterProfile
impl Clone for PythonInterpreterProfile
sourcefn clone(&self) -> PythonInterpreterProfile
fn clone(&self) -> PythonInterpreterProfile
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PythonInterpreterProfile
impl Debug for PythonInterpreterProfile
sourceimpl Default for PythonInterpreterProfile
impl Default for PythonInterpreterProfile
sourcefn default() -> PythonInterpreterProfile
fn default() -> PythonInterpreterProfile
Returns the “default value” for a type. Read more
sourceimpl ToString for PythonInterpreterProfile
impl ToString for PythonInterpreterProfile
sourceimpl<'_> TryFrom<&'_ str> for PythonInterpreterProfile
impl<'_> TryFrom<&'_ str> for PythonInterpreterProfile
sourceimpl TryFrom<String> for PythonInterpreterProfile
impl TryFrom<String> for PythonInterpreterProfile
impl Copy for PythonInterpreterProfile
impl StructuralPartialEq for PythonInterpreterProfile
Auto Trait Implementations
impl RefUnwindSafe for PythonInterpreterProfile
impl Send for PythonInterpreterProfile
impl Sync for PythonInterpreterProfile
impl Unpin for PythonInterpreterProfile
impl UnwindSafe for PythonInterpreterProfile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more