udp 10.2.4

A lightweight and efficient Rust library for building UDP servers with request-response handling.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

/// Represents data captured from a panic.
///
/// This structure holds information about a panic that occurred during
/// request processing, including the panic message and location if available.
///
/// Accessors are generated by `#[derive(Data)]`; the optional location getter
/// returns an owned `Option<String>` via `type(clone)`.
#[derive(Clone, Data, Debug)]
pub struct PanicData {
    /// The panic message.
    pub(super) message: String,
    /// The location where the panic occurred (file and line).
    #[get(type(clone))]
    pub(super) location: Option<String>,
}