pub struct Python {
pub program: Vec<OsString>,
pub read: Vec<PathBuf>,
pub env: BTreeMap<String, String>,
}Expand description
How to start Python for one plugin.
Fields§
§program: Vec<OsString>Interpreter and leading arguments.
read: Vec<PathBuf>Folders a sandbox must let it read (the venv, the helper).
env: BTreeMap<String, String>Variables to set (PYTHONPATH).
Trait Implementations§
impl Eq for Python
impl StructuralPartialEq for Python
Auto Trait Implementations§
impl Forget for Python
impl Freeze for Pythonwhere
*const u8 is !null: Freeze,
PhantomData<OsString>: Freeze,
PhantomData<PathBuf>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for Python
impl RefUnwindSafe for Python
impl Send for Python
impl Sync for Python
impl Unpin for Python
impl UnsafeUnpin for Pythonwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<OsString>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for Python
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.