mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-21 15:57:24 -06:00
Mark a couple of types as being copy-friendly.
This commit is contained in:
parent
c46ce7ccd9
commit
7e3e5c0355
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user