pub struct Header {
pub marker: [u8; 16],
pub length: u16,
pub record_type: u8,
}
Expand description
Represents the BGP header accompanying every BGP message.
Fields§
§marker: [u8; 16]
Predefined marker, must be set to all ones.
length: u16
Indicates the total length of the message, including the header in bytes.
record_type: u8
Indicates the type of message that follows the header.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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