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
impl Copy for MplsLabel
impl Eq for MplsLabel
impl StructuralPartialEq for MplsLabel
Auto Trait Implementations§
impl Freeze for MplsLabel
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)