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: i64Trait Implementations§
Source§impl Clone for QuotaConfig
impl Clone for QuotaConfig
Source§fn clone(&self) -> QuotaConfig
fn clone(&self) -> QuotaConfig
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 moreimpl Copy for QuotaConfig
Source§impl Debug for QuotaConfig
impl Debug for QuotaConfig
Auto Trait Implementations§
impl Freeze 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