pub struct VxlanHeader {
pub flags: u8,
pub vni: u32,
}Expand description
VXLAN header (8 bytes).
Wire format: [flags(1)][reserved(3)][vni(3)][reserved(1)]
Fields§
§flags: u8Flags (bit 3 = VNI valid).
vni: u32VXLAN Network Identifier (24-bit).
Implementations§
Source§impl VxlanHeader
impl VxlanHeader
Sourcepub const FLAG_VNI_VALID: u8 = 8u8
pub const FLAG_VNI_VALID: u8 = 8u8
Flag indicating VNI is valid.
Sourcepub fn from_bytes(data: &[u8]) -> Option<Self>
pub fn from_bytes(data: &[u8]) -> Option<Self>
Parse from bytes.
Trait Implementations§
Source§impl Clone for VxlanHeader
impl Clone for VxlanHeader
Source§fn clone(&self) -> VxlanHeader
fn clone(&self) -> VxlanHeader
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VxlanHeader
impl Debug for VxlanHeader
Source§impl PartialEq for VxlanHeader
impl PartialEq for VxlanHeader
impl Copy for VxlanHeader
impl Eq for VxlanHeader
impl StructuralPartialEq for VxlanHeader
Auto Trait Implementations§
impl Freeze for VxlanHeader
impl RefUnwindSafe for VxlanHeader
impl Send for VxlanHeader
impl Sync for VxlanHeader
impl Unpin for VxlanHeader
impl UnwindSafe for VxlanHeader
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)