Struct bgpkit_parser::MrtRecord
source · pub struct MrtRecord {
pub common_header: CommonHeader,
pub message: MrtMessage,
}
Expand description
MrtRecord is a wrapper struct that contains a header and a message.
A MRT record is constructed as the following:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Header... (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Message... (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
See CommonHeader for the content in header, and MrtMessage for the message format.
Fields§
§common_header: CommonHeader
§message: MrtMessage
Trait Implementations§
source§impl PartialEq<MrtRecord> for MrtRecord
impl PartialEq<MrtRecord> for MrtRecord
source§impl Serialize for MrtRecord
impl Serialize for MrtRecord
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more