pub struct PythonProviderRuntime { /* private fields */ }Expand description
Complete Python-provider runtime selection for a file-backed source.
The environment preparer is optional so existing ambient-interpreter behavior remains the default until an operator enables immutable environments.
Implementations§
Source§impl PythonProviderRuntime
impl PythonProviderRuntime
Sourcepub fn new(runner: PythonRunnerSelection) -> Self
pub fn new(runner: PythonRunnerSelection) -> Self
Creates a runtime using runner and the ambient interpreter.
Sourcepub fn with_capability_broker(self, capability_broker: CapabilityBroker) -> Self
pub fn with_capability_broker(self, capability_broker: CapabilityBroker) -> Self
Installs deployment policy used to intersect provider declarations.
Sourcepub fn with_environment_preparer(
self,
preparer: Arc<dyn PythonProviderEnvironmentPreparer>,
) -> Self
pub fn with_environment_preparer( self, preparer: Arc<dyn PythonProviderEnvironmentPreparer>, ) -> Self
Installs immutable environment preparation before Python candidates load.
Trait Implementations§
Source§impl Clone for PythonProviderRuntime
impl Clone for PythonProviderRuntime
Source§fn clone(&self) -> PythonProviderRuntime
fn clone(&self) -> PythonProviderRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PythonProviderRuntime
impl !RefUnwindSafe for PythonProviderRuntime
impl Send for PythonProviderRuntime
impl Sync for PythonProviderRuntime
impl Unpin for PythonProviderRuntime
impl UnsafeUnpin for PythonProviderRuntime
impl !UnwindSafe for PythonProviderRuntime
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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