udp/
lib.rs

1//! udp
2//!
3//! A lightweight and efficient Rust library for
4//! building UDP servers with request-response handling.
5
6pub(crate) mod cfg;
7pub(crate) mod common;
8pub(crate) mod config;
9pub(crate) mod context;
10pub(crate) mod handler;
11pub(crate) mod request;
12pub(crate) mod response;
13pub(crate) mod server;
14pub(crate) mod socket;
15pub(crate) mod utils;
16
17pub use config::*;
18pub use context::*;
19pub use request::*;
20pub use response::*;
21pub use server::*;
22pub use socket::*;
23pub use utils::*;
24
25pub use tokio;
26
27pub(crate) use common::*;
28pub(crate) use handler::*;
29
30pub(crate) use std::{
31    any::Any,
32    collections::HashMap,
33    error::Error as StdError,
34    fmt::{self, Display},
35    future::Future,
36    net::{IpAddr, Ipv4Addr, SocketAddr, SocketAddrV4},
37    panic::set_hook,
38    pin::Pin,
39    sync::Arc,
40};
41pub(crate) use tokio::{
42    net::UdpSocket,
43    sync::{MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard},
44};