msgtrans 1.0.7

Support for a variety of communication protocols such as TCP / QUIC / WebSocket, easy to create server and client network library.
Documentation
use super::adapter::ProtocolConfig;

/// Empty configuration type used by FlumePoweredProtocolAdapter
#[derive(Debug, Clone)]
pub struct EmptyConfig;

impl ProtocolConfig for EmptyConfig {
    fn validate(&self) -> Result<(), super::adapter::ConfigError> {
        Ok(())
    }

    fn default_config() -> Self {
        Self
    }

    fn merge(self, _other: Self) -> Self {
        self
    }
}