pub enum MplsIpTunnel {
    Destination(Vec<u8>),
    Ttl(u8),
    Other(DefaultNla),
}
Expand description

Netlink attributes for RTA_ENCAP with RTA_ENCAP_TYPE set to LWTUNNEL_ENCAP_MPLS.

Variants

Destination(Vec<u8>)

Ttl(u8)

Other(DefaultNla)

Trait Implementations

Deserialize the current type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Return the length of the serialized data.

Serialize this types and write the serialized data into the given buffer. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.