pub struct ConcurrencyConfig {
pub hooks: HooksConfig,
pub index_lock: IndexLockConfig,
pub landing: LandingConfig,
}Expand description
What: The three concurrent-commit tuning groups together. Why: None of them disables the commit transaction; they only tune it.
In TS you’d write (pseudocode):
type ConcurrencyConfig = { hooks: HooksConfig; indexLock: IndexLockConfig; landing: LandingConfig };Fields§
§hooks: HooksConfigHook serialization.
index_lock: IndexLockConfigForeign index-lock patience.
landing: LandingConfigLanding starvation protection.
Implementations§
Source§impl ConcurrencyConfig
What:
impl ConcurrencyConfig { ... } attaches functions to the struct.
Why:
Startup recovery runs before configuration loads and always uses these values.
impl ConcurrencyConfig
What:
impl ConcurrencyConfig { ... } attaches functions to the struct.
Why:
Startup recovery runs before configuration loads and always uses these values.
In TS you’d write (pseudocode):
const DEFAULT_CONCURRENCY_CONFIG: ConcurrencyConfig = { ... };Sourcepub fn defaults() -> ConcurrencyConfig
pub fn defaults() -> ConcurrencyConfig
What: Build the incumbent’s default tuning. Why: One function is the single source of the defaults for every caller.
In TS you’d write (pseudocode):
static defaults(): ConcurrencyConfig;Trait Implementations§
Source§impl Clone for ConcurrencyConfig
impl Clone for ConcurrencyConfig
impl Copy for ConcurrencyConfig
Source§impl Debug for ConcurrencyConfig
impl Debug for ConcurrencyConfig
impl Eq for ConcurrencyConfig
Source§impl PartialEq for ConcurrencyConfig
impl PartialEq for ConcurrencyConfig
impl StructuralPartialEq for ConcurrencyConfig
Auto Trait Implementations§
impl Freeze for ConcurrencyConfig
impl RefUnwindSafe for ConcurrencyConfig
impl Send for ConcurrencyConfig
impl Sync for ConcurrencyConfig
impl Unpin for ConcurrencyConfig
impl UnsafeUnpin for ConcurrencyConfig
impl UnwindSafe for ConcurrencyConfig
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<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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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