pub struct ImporterState { /* private fields */ }Expand description
Holds state for the custom MetaPathFinder.
Implementations§
Source§impl 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 Freeze for ImporterState
impl !RefUnwindSafe for ImporterState
impl Send for ImporterState
impl Sync for ImporterState
impl Unpin for ImporterState
impl UnwindSafe for ImporterState
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more