pub struct InspectorConfig {
pub enabled: bool,
pub event_capacity: usize,
pub broadcast_capacity: usize,
pub api_addr: Option<SocketAddr>,
}Expand description
Inspector subsystem configuration.
Fields§
§enabled: boolEnable traffic capture.
event_capacity: usizeMaximum events stored in the ring buffer.
broadcast_capacity: usizeBroadcast channel capacity.
api_addr: Option<SocketAddr>If set, bind the inspector HTTP API on this address.
Trait Implementations§
Source§impl Clone for InspectorConfig
impl Clone for InspectorConfig
Source§fn clone(&self) -> InspectorConfig
fn clone(&self) -> InspectorConfig
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 InspectorConfig
impl Debug for InspectorConfig
Source§impl Default for InspectorConfig
impl Default for InspectorConfig
Source§impl<'de> Deserialize<'de> for InspectorConfig
impl<'de> Deserialize<'de> for InspectorConfig
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
Auto Trait Implementations§
impl Freeze for InspectorConfig
impl RefUnwindSafe for InspectorConfig
impl Send for InspectorConfig
impl Sync for InspectorConfig
impl Unpin for InspectorConfig
impl UnsafeUnpin for InspectorConfig
impl UnwindSafe for InspectorConfig
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