pub struct QuotaConfig {
pub cpu_budget: i64,
pub mem_limit: usize,
pub spawn_burst: i64,
pub spawn_per_sec: i64,
pub send_burst: i64,
pub send_per_sec: i64,
}Expand description
Tunables copied onto every newly spawned flow.
Fields§
§cpu_budget: i64§mem_limit: usize§spawn_burst: i64§spawn_per_sec: i64§send_burst: i64§send_per_sec: i64Implementations§
Source§impl QuotaConfig
impl QuotaConfig
Sourcepub fn permissive() -> Self
pub fn permissive() -> Self
Current defaults: generous so samples and tests keep passing.
Sourcepub fn sandbox() -> Self
pub fn sandbox() -> Self
Starting point for untrusted modules. Tune under real load before
using as a production default. Pair with
crate::RuntimeConfig::sandbox for process-wide max_flows /
max_ask_waits ceilings.
Trait Implementations§
Auto Trait Implementations§
impl Forget for QuotaConfig
impl Freeze for QuotaConfig
impl Move for QuotaConfig
impl RefUnwindSafe for QuotaConfig
impl Send for QuotaConfig
impl Sync for QuotaConfig
impl Unpin for QuotaConfig
impl UnsafeUnpin for QuotaConfig
impl UnwindSafe for QuotaConfig
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