pub struct RuntimeConfig {
pub scheduler: SchedulerConfig,
pub driver_type: DriverType,
pub driver_io: DriverConfig,
pub enable_parking: bool,
pub park_timeout: Duration,
}Expand description
Runtime configuration / 运行时配置
Configuration for the async runtime including scheduler and driver settings. 异步运行时的配置,包括调度器和驱动设置。
Fields§
§scheduler: SchedulerConfigScheduler configuration / 调度器配置
driver_type: DriverTypeDriver type to use / 要使用的driver类型
driver_io: DriverConfigDriver I/O configuration / Driver I/O配置
enable_parking: boolEnable thread parking / 启用线程休眠
park_timeout: DurationPark timeout / 休眠超时
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 (const: unstable) · 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