pub fn new(
        socket: Socket,
        timeout: u64,
        rng: Arc<Mutex<StdRng>>,
        r_type: RadioTypes,
        logger: Logger,
    ) -> WifiListener {
        let read_time = std::time::Duration::from_millis(timeout);
        socket
            .set_read_timeout(Some(read_time))
            .expect("Coult not set socket on non-blocking mode");
        WifiListener {
            socket,
            rng,
            r_type,
            logger,
        }
    }
///Creates a new instance of DeviceListener
Creates a new instance of DeviceListener
Creates a new instance of DeviceListener
pub fn new(
        socket: Socket,
        timeout: u64,
        rng: Arc<Mutex<StdRng>>,
        r_type: RadioTypes,
        logger: Logger,
    ) -> WifiListener {
        let read_time = std::time::Duration::from_millis(timeout);
        socket
            .set_read_timeout(Some(read_time))
            .expect("Coult not set socket on non-blocking mode");
        WifiListener {
            socket,
            rng,
            r_type,
            logger,
        }
    }
pub fn new ( socket : Socket , timeout : u64 , rng : Arc < Mutex < StdRng > > , r_type : RadioTypes , logger : Logger , ) -> WifiListener { let read_time = std :: time :: Duration :: from_millis ( timeout ) ; socket . set_read_timeout ( Some ( read_time ) ) . expect ( " " ) ; WifiListener { socket , rng , r_type , logger , } }
Creates a new instance of DeviceListener
Creates a new instance of DeviceListener
socket
Socket
timeout
u64
rng
Arc<Mutex<StdRng>>
r_type
RadioTypes
logger
Logger