Struct oxidized_importer::ImporterState
source · [−]pub struct ImporterState { /* private fields */ }Expand description
Holds state for the custom MetaPathFinder.
Implementations
sourceimpl ImporterState
impl ImporterState
sourcepub fn get_resources_state<'a>(&self) -> &PythonResourcesState<'a, u8>
pub fn get_resources_state<'a>(&self) -> &PythonResourcesState<'a, u8>
Obtain the PythonResourcesState associated with this instance.
sourcepub fn get_resources_state_mut<'a>(&self) -> &mut PythonResourcesState<'a, u8>
pub fn get_resources_state_mut<'a>(&self) -> &mut PythonResourcesState<'a, u8>
Obtain a mutable PythonResourcesState associated with this instance.
There is no run-time checking for mutation exclusion. So don’t like this leak outside of a single call site that needs to access it!
sourcepub fn set_multiprocessing_set_start_method(&mut self, value: Option<String>)
pub fn set_multiprocessing_set_start_method(&mut self, value: Option<String>)
Set the value to call multiprocessing.set_start_method() with on import of multiprocessing.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ImporterState
impl Send for ImporterState
impl Sync for ImporterState
impl Unpin for ImporterState
impl UnwindSafe for ImporterState
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