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§fn clone(&self) -> RuntimeOpts
fn clone(&self) -> RuntimeOpts
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 RuntimeOpts
impl Debug for RuntimeOpts
Source§impl Default for RuntimeOpts
impl Default for RuntimeOpts
Source§fn default() -> RuntimeOpts
fn default() -> RuntimeOpts
Returns the “default value” for a type. Read more
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