pub struct NativeServerConfig {
pub max_frame_bytes: usize,
pub max_in_flight_per_connection: usize,
pub max_outbound_bytes_per_connection: usize,
pub max_outbound_bytes_total: usize,
pub max_inbound_bytes_total: usize,
pub write_timeout: Duration,
pub wait_for_index: bool,
pub production: Option<Arc<ProductionRuntime>>,
pub request_gate: Option<Arc<dyn NativeRequestGate>>,
pub allow_insecure_remote: bool,
}Expand description
Runtime limits for the native TCP listener.
Fields§
§max_frame_bytes: usizeLargest accepted payload, bounded by MAX_NATIVE_FRAME_BYTES.
max_in_flight_per_connection: usizeMaximum requests executing concurrently on one connection.
max_outbound_bytes_per_connection: usizeMaximum response bytes queued or being written for one connection.
max_outbound_bytes_total: usizeMaximum response bytes reserved across every native connection.
max_inbound_bytes_total: usizeMaximum request payload bytes buffered across every native connection.
A reservation is acquired before allocating a frame body and retained until request dispatch completes. This prevents many valid, large frames from turning into unbounded process memory use.
write_timeout: DurationDeadline for one complete native response write.
wait_for_index: boolWait for exact-query visibility before acknowledging native appends.
When false, acknowledgement means the authoritative checksummed STEL envelope is durable and indexing continues under bounded shard-stream backpressure.
production: Option<Arc<ProductionRuntime>>Shared authentication, tenant, lifecycle, and admission controls.
None is intended only for tests and explicit development mode.
request_gate: Option<Arc<dyn NativeRequestGate>>Optional product-owned fencing check for append and query operations.
allow_insecure_remote: boolExplicitly permits raw native TCP from non-loopback peers in production.
Keep this disabled unless a local TLS/service-mesh ingress is the actual encryption boundary for the accepted connection.
Implementations§
Trait Implementations§
Source§impl Clone for NativeServerConfig
impl Clone for NativeServerConfig
Source§impl Debug for NativeServerConfig
impl Debug for NativeServerConfig
Auto Trait Implementations§
impl !RefUnwindSafe for NativeServerConfig
impl !UnwindSafe for NativeServerConfig
impl Freeze for NativeServerConfig
impl Send for NativeServerConfig
impl Sync for NativeServerConfig
impl Unpin for NativeServerConfig
impl UnsafeUnpin for NativeServerConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request