Struct bgpkit_parser::parser::bmp::messages::BmpCommonHeader
source · pub struct BmpCommonHeader {
pub version: u8,
pub msg_len: u32,
pub msg_type: BmpMsgType,
}
Expand description
BMP Common Header
https://www.rfc-editor.org/rfc/rfc7854#section-4.1
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
+-+-+-+-+-+-+-+-+
| Version |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Message Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Msg. Type |
+---------------+
Fields§
§version: u8
§msg_len: u32
§msg_type: BmpMsgType
Trait Implementations§
source§impl Clone for BmpCommonHeader
impl Clone for BmpCommonHeader
source§fn clone(&self) -> BmpCommonHeader
fn clone(&self) -> BmpCommonHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BmpCommonHeader
impl Debug for BmpCommonHeader
source§impl Hash for BmpCommonHeader
impl Hash for BmpCommonHeader
source§impl PartialEq for BmpCommonHeader
impl PartialEq for BmpCommonHeader
source§fn eq(&self, other: &BmpCommonHeader) -> bool
fn eq(&self, other: &BmpCommonHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BmpCommonHeader
impl Eq for BmpCommonHeader
impl StructuralPartialEq for BmpCommonHeader
Auto Trait Implementations§
impl Freeze for BmpCommonHeader
impl RefUnwindSafe for BmpCommonHeader
impl Send for BmpCommonHeader
impl Sync for BmpCommonHeader
impl Unpin for BmpCommonHeader
impl UnwindSafe for BmpCommonHeader
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.