pub struct RuntimeOpts {
pub metrics: RuntimeMetricsOpts,
pub enable_alt_timer: bool,
}Expand description
Configuration options for a Tokio runtime.
Fields§
§metrics: RuntimeMetricsOptsOptions for runtime metrics collection.
enable_alt_timer: boolEnable Tokio’s experimental alternative timer.
This requires building with --cfg tokio_unstable and only applies to
Tokio’s multi-threaded runtime.
Trait Implementations§
Source§impl Clone for RuntimeOpts
impl Clone for RuntimeOpts
Source§impl Debug for RuntimeOpts
impl Debug for RuntimeOpts
Auto Trait Implementations§
impl Freeze for RuntimeOpts
impl RefUnwindSafe for RuntimeOpts
impl Send for RuntimeOpts
impl Sync for RuntimeOpts
impl Unpin for RuntimeOpts
impl UnsafeUnpin for RuntimeOpts
impl UnwindSafe for RuntimeOpts
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