zerodds_corba_giop/message_error.rs
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026 ZeroDDS Contributors
3
4//! MessageError-Message — Spec §15.4.8.
5//!
6//! Body-free. Sent when a message with an unknown magic / version /
7//! type is received, or when the header is malformed. The caller then
8//! closes the connection (Spec §15.4.8, normative).
9
10/// MessageError body — empty per Spec §15.4.8.
11#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
12pub struct MessageError;
13
14#[cfg(test)]
15#[allow(clippy::expect_used, clippy::unwrap_used, clippy::panic)]
16mod tests {
17 use super::*;
18
19 #[test]
20 fn body_is_unit() {
21 let _ = MessageError;
22 }
23}