pub struct LocalStreamExecutorConfig {
pub worker_threads: usize,
pub max_in_flight: usize,
pub response_buffer_bytes: usize,
pub response_buffer_chunks: usize,
pub cooperative_yield_interval: usize,
}Expand description
Resource limits for the pinned local render executor.
The pool owns exactly worker_threads long-lived threads, by default one
per CPU the process may use, started on the first local render. max_in_flight bounds queued plus active
streamed responses, while both a chunk count and byte budget bound each
stream’s cross-thread transport. Buffered renders hold no transport and
queue like ordinary tasks; bound them with
FrameworkBuilder::with_concurrency_limit. The renderer may hold
one not-yet-published chunk while waiting for byte capacity; when that
single chunk is larger than response_buffer_bytes, it reserves the whole
budget and remains the documented one-in-hand exception to the byte bound.
Fields§
§worker_threads: usize§max_in_flight: usize§response_buffer_bytes: usize§response_buffer_chunks: usize§cooperative_yield_interval: usizeTrait Implementations§
Source§impl Clone for LocalStreamExecutorConfig
impl Clone for LocalStreamExecutorConfig
impl Copy for LocalStreamExecutorConfig
Source§impl Debug for LocalStreamExecutorConfig
impl Debug for LocalStreamExecutorConfig
Source§impl Default for LocalStreamExecutorConfig
impl Default for LocalStreamExecutorConfig
impl Eq for LocalStreamExecutorConfig
impl StructuralPartialEq for LocalStreamExecutorConfig
Auto Trait Implementations§
impl Forget for LocalStreamExecutorConfig
impl Freeze for LocalStreamExecutorConfig
impl Move for LocalStreamExecutorConfig
impl RefUnwindSafe for LocalStreamExecutorConfig
impl Send for LocalStreamExecutorConfig
impl Sync for LocalStreamExecutorConfig
impl Unpin for LocalStreamExecutorConfig
impl UnsafeUnpin for LocalStreamExecutorConfig
impl UnwindSafe for LocalStreamExecutorConfig
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§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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