Enum thingvellir::RuntimeMode
source · pub enum RuntimeMode {
Current,
RuntimePerShard,
}
Variants§
Current
Spawns tasks on the current runtime that has invoked [ServiceBuilder::build
] or
[ServiceBuilder::build_mutable
].
This is the default.
RuntimePerShard
Spawns a single threaded tokio::runtime::Runtime
for each shard.
This is useful when you are running into limitations with having a single runtime for all the shards, because currently, a single tokio runtime becomes in-efficient when it spans a large number of worker threads across multiple NUMA nodes.
See this issue for more information.
Trait Implementations§
source§impl Clone for RuntimeMode
impl Clone for RuntimeMode
source§fn clone(&self) -> RuntimeMode
fn clone(&self) -> RuntimeMode
Returns a copy of the value. Read more
1.0.0 · 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 RuntimeMode
impl Debug for RuntimeMode
source§impl Default for RuntimeMode
impl Default for RuntimeMode
source§fn default() -> RuntimeMode
fn default() -> RuntimeMode
Returns the “default value” for a type. Read more
source§impl PartialEq for RuntimeMode
impl PartialEq for RuntimeMode
source§fn eq(&self, other: &RuntimeMode) -> bool
fn eq(&self, other: &RuntimeMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RuntimeMode
impl Eq for RuntimeMode
impl StructuralPartialEq for RuntimeMode
Auto Trait Implementations§
impl Freeze for RuntimeMode
impl RefUnwindSafe for RuntimeMode
impl Send for RuntimeMode
impl Sync for RuntimeMode
impl Unpin for RuntimeMode
impl UnwindSafe for RuntimeMode
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.