pub struct RuntimeParam {
pub worker_threads: usize,
pub max_blocking_threads: usize,
pub handover: Option<ZRuntime>,
}
Expand description
Available parameters to configure the ZRuntime.
Fields§
§worker_threads: usize
Number of async worker threads. At least one.
max_blocking_threads: usize
Number of maximal worker threads for blocking tasks. At least one.
handover: Option<ZRuntime>
Hand over one ZRuntime to another one.
Implementations§
Trait Implementations§
Source§impl Borrow<RuntimeParam> for ZRuntime
Borrow the underlying RuntimeParam
from ZRuntime
impl Borrow<RuntimeParam> for ZRuntime
Borrow the underlying RuntimeParam
from ZRuntime
Source§fn borrow(&self) -> &RuntimeParam
fn borrow(&self) -> &RuntimeParam
Immutably borrows from an owned value. Read more
Source§impl Debug for RuntimeParam
impl Debug for RuntimeParam
Source§impl Default for RuntimeParam
impl Default for RuntimeParam
Source§impl<'de> Deserialize<'de> for RuntimeParamwhere
RuntimeParam: Default,
impl<'de> Deserialize<'de> for RuntimeParamwhere
RuntimeParam: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RuntimeParam
impl RefUnwindSafe for RuntimeParam
impl Send for RuntimeParam
impl Sync for RuntimeParam
impl Unpin for RuntimeParam
impl UnwindSafe for RuntimeParam
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