Struct netlink_packet_route::route::MplsLabel
source · pub struct MplsLabel {
pub label: u32,
pub traffic_class: u8,
pub bottom_of_stack: bool,
pub ttl: u8,
}
Expand description
MPLS label defined in RFC 3032 and updated by RFC 5462
Fields§
§label: u32
label, 20 bytes
traffic_class: u8
Traffic Class, 3 bits
bottom_of_stack: bool
Bottom of Stack, 1 bit
ttl: u8
Time to Live
Trait Implementations§
source§impl From<MplsLabel> for RouteAddress
impl From<MplsLabel> for RouteAddress
source§impl PartialEq for MplsLabel
impl PartialEq for MplsLabel
impl Copy for MplsLabel
impl Eq for MplsLabel
impl StructuralPartialEq for MplsLabel
Auto Trait Implementations§
impl RefUnwindSafe for MplsLabel
impl Send for MplsLabel
impl Sync for MplsLabel
impl Unpin for MplsLabel
impl UnwindSafe for MplsLabel
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