pub struct ProxyConfig {
pub enabled: bool,
pub audit_capacity: u32,
pub max_snapshot_items: u32,
pub max_sequence_items: u32,
pub max_delay_ns: u64,
pub max_sequence_duration_ns: u64,
pub max_deadline_ns: u64,
pub max_ops_per_second: u32,
}Expand description
Structured configuration values for the proxy driver.
Fields§
§enabled: boolWhether the proxy accepts sessions. If false, all sessions are rejected.
audit_capacity: u32Capacity of the audit ring buffer. Can only narrow (<= 1024).
max_snapshot_items: u32Maximum items allowed in a single snapshot. Can only narrow (<= 64).
max_sequence_items: u32Maximum items allowed in a single sequence. Can only narrow (<= 64).
max_delay_ns: u64Maximum delay allowed per sequence step in ns (<= 100ms).
max_sequence_duration_ns: u64Maximum sequence duration in ns (<= 1s).
max_deadline_ns: u64Maximum deadline timeout allowed for waits and polls in ns (<= 1s).
max_ops_per_second: u32Maximum operations per second per session (0 = unlimited).
Implementations§
Source§impl ProxyConfig
impl ProxyConfig
Sourcepub fn narrow_with(&self, runtime: &Self) -> Result<Self, ConfigNarrowingError>
pub fn narrow_with(&self, runtime: &Self) -> Result<Self, ConfigNarrowingError>
Validates that runtime narrows or preserves this baseline config.
Trait Implementations§
Source§impl Clone for ProxyConfig
impl Clone for ProxyConfig
impl Copy for ProxyConfig
Source§impl Debug for ProxyConfig
impl Debug for ProxyConfig
Source§impl Default for ProxyConfig
impl Default for ProxyConfig
Source§impl<'de> Deserialize<'de> for ProxyConfig
impl<'de> Deserialize<'de> for ProxyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProxyConfig
Source§impl PartialEq for ProxyConfig
impl PartialEq for ProxyConfig
Source§impl Serialize for ProxyConfig
impl Serialize for ProxyConfig
impl StructuralPartialEq for ProxyConfig
Auto Trait Implementations§
impl Freeze for ProxyConfig
impl RefUnwindSafe for ProxyConfig
impl Send for ProxyConfig
impl Sync for ProxyConfig
impl Unpin for ProxyConfig
impl UnsafeUnpin for ProxyConfig
impl UnwindSafe for ProxyConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.