pub struct NetworkStackConfig {
pub security: TransportSecurityMode,
pub explicit_plaintext_opt_in: bool,
pub handshake_timeout_ms: u64,
pub message_size_cap_bytes: usize,
pub http2: Http2HardLimits,
}Expand description
Networking stack policy for remote effects and replication transport.
Fields§
§security: TransportSecurityMode§explicit_plaintext_opt_in: bool§handshake_timeout_ms: u64§message_size_cap_bytes: usize§http2: Http2HardLimitsImplementations§
Source§impl NetworkStackConfig
impl NetworkStackConfig
Sourcepub fn plaintext_local_dev(explicit_opt_in: bool) -> Result<Self>
pub fn plaintext_local_dev(explicit_opt_in: bool) -> Result<Self>
Build plaintext config for explicit local development.
§Errors
Returns FrankenError::Unsupported when plaintext is requested
without explicit opt-in.
Sourcepub fn validate_security(&self) -> Result<()>
pub fn validate_security(&self) -> Result<()>
Validate the transport security policy.
§Errors
Returns FrankenError::Unsupported if plaintext is not explicitly opted in.
Sourcepub fn validate_concurrent_streams(&self, streams: u32) -> Result<()>
pub fn validate_concurrent_streams(&self, streams: u32) -> Result<()>
Validate stream concurrency against HTTP/2 hard limits.
§Errors
Returns FrankenError::Busy when streams exceeds the configured maximum.
Sourcepub fn validate_header_list_size(&self, header_bytes: usize) -> Result<()>
pub fn validate_header_list_size(&self, header_bytes: usize) -> Result<()>
Validate HTTP header-list size.
§Errors
Returns FrankenError::TooBig if header bytes exceed configured limit.
Sourcepub fn validate_continuation_elapsed(&self, elapsed_ms: u64) -> Result<()>
pub fn validate_continuation_elapsed(&self, elapsed_ms: u64) -> Result<()>
Validate elapsed time for HTTP/2 continuation.
§Errors
Returns FrankenError::BusyRecovery when continuation elapsed time
exceeds the configured timeout.
Trait Implementations§
Source§impl Clone for NetworkStackConfig
impl Clone for NetworkStackConfig
Source§fn clone(&self) -> NetworkStackConfig
fn clone(&self) -> NetworkStackConfig
Returns a duplicate 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 NetworkStackConfig
impl Debug for NetworkStackConfig
Source§impl Default for NetworkStackConfig
impl Default for NetworkStackConfig
Source§impl PartialEq for NetworkStackConfig
impl PartialEq for NetworkStackConfig
impl Copy for NetworkStackConfig
impl Eq for NetworkStackConfig
impl StructuralPartialEq for NetworkStackConfig
Auto Trait Implementations§
impl Freeze for NetworkStackConfig
impl RefUnwindSafe for NetworkStackConfig
impl Send for NetworkStackConfig
impl Sync for NetworkStackConfig
impl Unpin for NetworkStackConfig
impl UnsafeUnpin for NetworkStackConfig
impl UnwindSafe for NetworkStackConfig
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
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).