Mark a couple of types as being copy-friendly.

This commit is contained in:
Herbert Wolverson 2024-10-24 12:39:32 -05:00
parent c46ce7ccd9
commit 7e3e5c0355
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ use zerocopy::FromBytes;
use lqos_utils::units::DownUpOrder;
/// Representation of the eBPF `flow_key_t` type.
#[derive(Debug, Clone, Default, PartialEq, Eq, Hash, FromBytes)]
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash, FromBytes)]
#[repr(C)]
pub struct FlowbeeKey {
/// Mapped `XdpIpAddress` source for the flow.

View File

@ -3,7 +3,7 @@ use serde::Serialize;
use lqos_sys::flowbee_data::FlowbeeKey;
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize)]
pub enum FlowProtocol {
Smtp,
Ftp,