use crate::{Endpoint, Message, MessageType};
#[derive(
Debug,
Copy,
Clone,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash,
zerocopy::Immutable,
zerocopy::FromBytes,
zerocopy::IntoBytes,
zerocopy::Unaligned,
zerocopy::KnownLayout,
)]
#[repr(C, packed)]
pub struct Pong {
pub tx_id: [u8; 12],
pub src: Endpoint,
}
impl Message for Pong {
const TYPE: MessageType = MessageType::Pong;
}
impl Pong {
pub const fn size() -> usize {
size_of::<Self>()
}
}