pub struct RuntimeConfig {
pub memory_limit_bytes: u64,
pub timeout_ms: u64,
pub packages: Vec<String>,
pub debug: bool,
pub allow_network: bool,
pub wheel_urls: Vec<String>,
}Expand description
Configuration for the Pyodide runtime
Fields§
§memory_limit_bytes: u64Memory limit per plugin instance (bytes)
timeout_ms: u64CPU time limit (milliseconds)
packages: Vec<String>Pre-installed packages
debug: boolEnable debug logging
allow_network: boolAllow network access (for package installation)
wheel_urls: Vec<String>Custom wheel URLs
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Sourcepub fn with_ml_packages() -> Self
pub fn with_ml_packages() -> Self
Create config with ML packages (numpy, pandas, sklearn)
Sourcepub fn lightweight() -> Self
pub fn lightweight() -> Self
Create lightweight config for validation scripts
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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<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