pub struct RuntimeOptionsPatch {
pub flavor: Option<RuntimeFlavor>,
pub worker_threads: Option<usize>,
pub max_blocking_tasks: Option<usize>,
pub drain_linger: Option<Duration>,
}Expand description
A partial update to the runtime options exposed by the binding.
configure_partial merges these fields into the latest configured
options, validates the merged candidate, and commits it while holding the
runtime controller lock. Fields that are not exposed for partial updates,
such as thread_name_prefix and park_deadline, remain unchanged.
Fields§
§flavor: Option<RuntimeFlavor>§worker_threads: Option<usize>§max_blocking_tasks: Option<usize>§drain_linger: Option<Duration>Some(Duration::ZERO) disables lingering; other values are clamped to
MAX_DRAIN_LINGER_MICROS by validation.
Trait Implementations§
Source§impl Clone for RuntimeOptionsPatch
impl Clone for RuntimeOptionsPatch
Source§fn clone(&self) -> RuntimeOptionsPatch
fn clone(&self) -> RuntimeOptionsPatch
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 RuntimeOptionsPatch
Source§impl Debug for RuntimeOptionsPatch
impl Debug for RuntimeOptionsPatch
Source§impl Default for RuntimeOptionsPatch
impl Default for RuntimeOptionsPatch
Source§fn default() -> RuntimeOptionsPatch
fn default() -> RuntimeOptionsPatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuntimeOptionsPatch
impl RefUnwindSafe for RuntimeOptionsPatch
impl Send for RuntimeOptionsPatch
impl Sync for RuntimeOptionsPatch
impl Unpin for RuntimeOptionsPatch
impl UnsafeUnpin for RuntimeOptionsPatch
impl UnwindSafe for RuntimeOptionsPatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more