udp-request 0.3.16

A simple UDP request library for sending and receiving UDP packets, designed to handle network communication in Rust applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::*;

/// Represents a UDP request.
///
/// This struct holds the configuration and response for a UDP request.
#[derive(Clone, Debug)]
pub struct UdpRequest {
    /// The configuration for the UDP request, wrapped in an `Arc<RwLock<>>`.
    pub(crate) config: ArcRwLock<Config>,
    /// The response of the UDP request, wrapped in an `Arc<RwLock<>>`.
    pub(crate) response: ArcRwLock<UdpResponseBinary>,
}