diff --git a/src/bmp/message.rs b/src/bmp/message.rs index d852737a..8e097cea 100644 --- a/src/bmp/message.rs +++ b/src/bmp/message.rs @@ -59,7 +59,7 @@ impl Error for MessageError { } /// including the [`CommonHeader`], possibly a [`PerPeerHeader`] and the /// additional payload. The payload often comprises one or multiple /// [`bgp::Message`](crate::bgp::Message)s. - +#[derive(Clone)] #[cfg_attr(feature = "serde", derive(serde::Serialize))] pub enum Message> { RouteMonitoring(RouteMonitoring), @@ -548,7 +548,7 @@ typeenum!( /// Route Monitoring message. #[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct RouteMonitoring> { octets: Octets @@ -598,7 +598,7 @@ impl RouteMonitoring { } /// Statistics Report message. - +#[derive(Clone)] #[cfg_attr(feature = "serde", derive(serde::Serialize))] pub struct StatisticsReport { octets: Octs, @@ -662,7 +662,7 @@ impl Debug for StatisticsReport { /// Peer Down Notification. #[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct PeerDownNotification> { octets: Octets, } @@ -771,7 +771,7 @@ impl PeerDownNotification { /// Peer Up Notification. #[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct PeerUpNotification> { octets: Octets, } @@ -955,7 +955,7 @@ impl PeerUpNotification { /// Initiation Message. #[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct InitiationMessage> { octets: Octets, } @@ -995,6 +995,7 @@ impl InitiationMessage { /// Termination message. +#[derive(Clone, Debug)] #[cfg_attr(feature = "serde", derive(serde::Serialize))] pub struct TerminationMessage> { octets: Octets, @@ -1040,6 +1041,7 @@ impl TerminationMessage { /// RouteMirroring. /// /// NB: Not well tested/supported at this moment! +#[derive(Clone, Debug)] #[cfg_attr(feature = "serde", derive(serde::Serialize))] pub struct RouteMirroring { octets: Octs,