udp_request/lib.rs
1//! udp-request
2//!
3//! A simple UDP request library for sending and receiving UDP packets,
4//! designed to handle network communication in Rust applications.
5
6mod common;
7mod request;
8mod response;
9
10pub use {request::*, response::*};
11
12use common::*;
13
14use std::{
15 error::Error as StdError,
16 fmt::Debug,
17 fmt::{self, Display},
18 net::UdpSocket,
19 sync::{Arc, RwLock},
20 time::Duration,
21};
22
23#[cfg(test)]
24use std::{
25 sync::Mutex,
26 thread::{JoinHandle, spawn},
27 time::Instant,
28};