echosrv 0.3.0

A high-performance set of async echo server library built with Tokio for testing and development environments
Documentation
#[cfg(test)]
mod tests {
    use crate::common::traits::EchoServerTrait;
    use crate::{UdpConfig, UdpEchoServer};
    use std::time::Duration;

    #[tokio::test]
    async fn test_config_default() {
        let config = UdpConfig::default();
        assert_eq!(config.buffer_size, 1024);
        // Timeouts are now always set (Duration instead of Option<Duration>)
        assert_eq!(config.read_timeout, Duration::from_secs(30));
        assert_eq!(config.write_timeout, Duration::from_secs(30));
    }

    #[tokio::test]
    async fn test_echo_server_new() {
        let config = UdpConfig::default();
        let server = UdpEchoServer::new(config.into());
        assert!(server.shutdown_signal().receiver_count() == 0);
    }
}