#[non_exhaustive]pub struct MitmConfig {Show 19 fields
pub bind: SocketAddr,
pub unix_socket_path: Option<PathBuf>,
pub interception: InterceptionScope,
pub process_attribution: ProcessAttributionConfig,
pub tls: TlsConfig,
pub http2_enabled: bool,
pub http2_max_header_list_size: u32,
pub http3_passthrough: bool,
pub max_http_head_bytes: usize,
pub accept_retry_backoff_ms: u64,
pub max_flow_event_backlog: usize,
pub max_in_flight_bytes: usize,
pub max_concurrent_flows: usize,
pub upstream: UpstreamConfig,
pub connection_pool: ConnectionPoolConfig,
pub body: BodyConfig,
pub intercept_mode: InterceptMode,
pub handler: HandlerConfig,
pub flow_runtime: FlowRuntimeConfig,
}Expand description
Top-level proxy configuration.
Use MitmConfig::default() and override individual fields.
At minimum, interception.destinations
must contain at least one entry before the config will pass validation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bind: SocketAddr§unix_socket_path: Option<PathBuf>§interception: InterceptionScope§process_attribution: ProcessAttributionConfig§tls: TlsConfig§http2_enabled: bool§http2_max_header_list_size: u32§http3_passthrough: bool§max_http_head_bytes: usize§accept_retry_backoff_ms: u64§max_flow_event_backlog: usize§max_in_flight_bytes: usize§max_concurrent_flows: usize§upstream: UpstreamConfig§connection_pool: ConnectionPoolConfig§body: BodyConfig§intercept_mode: InterceptMode§handler: HandlerConfig§flow_runtime: FlowRuntimeConfigImplementations§
Trait Implementations§
Source§impl Clone for MitmConfig
impl Clone for MitmConfig
Source§fn clone(&self) -> MitmConfig
fn clone(&self) -> MitmConfig
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 MitmConfig
impl Debug for MitmConfig
Source§impl Default for MitmConfig
impl Default for MitmConfig
Source§impl PartialEq for MitmConfig
impl PartialEq for MitmConfig
impl Eq for MitmConfig
impl StructuralPartialEq for MitmConfig
Auto Trait Implementations§
impl Freeze for MitmConfig
impl RefUnwindSafe for MitmConfig
impl Send for MitmConfig
impl Sync for MitmConfig
impl Unpin for MitmConfig
impl UnsafeUnpin for MitmConfig
impl UnwindSafe for MitmConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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.