pub struct MapRule {
pub ipv6_prefix: Ipv6Addr,
pub ipv6_prefix_len: u8,
pub ipv4_prefix: Ipv4Addr,
pub ipv4_prefix_len: u8,
pub port_params: PortParameters,
pub border_relay: Option<Ipv6Addr>,
pub is_fmr: bool,
}
Expand description
MAP rule configuration
Fields§
§ipv6_prefix: Ipv6Addr
IPv6 prefix for this MAP domain
ipv6_prefix_len: u8
IPv6 prefix length
ipv4_prefix: Ipv4Addr
IPv4 prefix for address sharing
ipv4_prefix_len: u8
IPv4 prefix length
port_params: PortParameters
Port parameters
border_relay: Option<Ipv6Addr>
Border Relay IPv6 address (MAP-E only)
is_fmr: bool
Forward Mapping Rule (FMR) vs Basic Mapping Rule (BMR)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapRule
impl<'de> Deserialize<'de> for MapRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MapRule
impl RefUnwindSafe for MapRule
impl Send for MapRule
impl Sync for MapRule
impl Unpin for MapRule
impl UnwindSafe for MapRule
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