Struct bgpkit_parser::models::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
Implementations§
Trait Implementations§
source§impl PartialEq for MrtRecord
impl PartialEq for MrtRecord
source§impl TryFrom<&BmpMessage> for MrtRecord
impl TryFrom<&BmpMessage> for MrtRecord
impl StructuralPartialEq for MrtRecord
Auto Trait Implementations§
impl Freeze for MrtRecord
impl RefUnwindSafe for MrtRecord
impl Send for MrtRecord
impl Sync for MrtRecord
impl Unpin for MrtRecord
impl UnwindSafe for MrtRecord
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more