pub struct TunnelLayer {
pub tunnel_type: TunnelType,
pub tunnel_id: Option<u64>,
pub offset: usize,
}Expand description
Information about a single tunnel encapsulation layer.
Fields§
§tunnel_type: TunnelTypeType of tunnel at this layer.
tunnel_id: Option<u64>Tunnel identifier (VNI, GRE key, TEID, MPLS label, etc.). None if the tunnel type doesn’t have an identifier.
offset: usizeByte offset where this tunnel started in the packet.
Trait Implementations§
Source§impl Clone for TunnelLayer
impl Clone for TunnelLayer
Source§fn clone(&self) -> TunnelLayer
fn clone(&self) -> TunnelLayer
Returns a duplicate 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 TunnelLayer
impl Debug for TunnelLayer
Source§impl Default for TunnelLayer
impl Default for TunnelLayer
Source§fn default() -> TunnelLayer
fn default() -> TunnelLayer
Returns the “default value” for a type. Read more
impl Copy for TunnelLayer
Auto Trait Implementations§
impl Freeze for TunnelLayer
impl RefUnwindSafe for TunnelLayer
impl Send for TunnelLayer
impl Sync for TunnelLayer
impl Unpin for TunnelLayer
impl UnwindSafe for TunnelLayer
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