pub struct TcpConfig {
pub enabled: bool,
pub port: u16,
pub host: String,
pub max_connections: usize,
pub timeout_secs: u64,
pub fixtures_dir: Option<PathBuf>,
pub echo_mode: bool,
pub enable_tls: bool,
pub tls_cert_path: Option<PathBuf>,
pub tls_key_path: Option<PathBuf>,
}Expand description
TCP server configuration
Fields§
§enabled: boolEnable TCP server
port: u16Server port
host: StringHost address
max_connections: usizeMaximum connections
timeout_secs: u64Connection timeout in seconds
fixtures_dir: Option<PathBuf>Directory containing fixture files
echo_mode: boolEnable echo mode (echo received data back)
enable_tls: boolEnable TLS support
tls_cert_path: Option<PathBuf>Path to TLS certificate file
tls_key_path: Option<PathBuf>Path to TLS private key file
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TcpConfig
impl<'de> Deserialize<'de> for TcpConfig
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 TcpConfig
impl RefUnwindSafe for TcpConfig
impl Send for TcpConfig
impl Sync for TcpConfig
impl Unpin for TcpConfig
impl UnwindSafe for TcpConfig
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