pub trait AssignedAddressState:
Debug
+ Send
+ Sync
+ 'static {
type Address: IpAddress<Version: AssignedAddrIpExt>;
// Required methods
fn addr(&self) -> IpDeviceAddr<Self::Address>;
fn addr_sub(
&self,
) -> AddrSubnet<Self::Address, <<Self::Address as IpAddress>::Version as AssignedAddrIpExt>::AssignedWitness>;
}
Expand description
The state associated with an IP address assigned to an IP device.
Required Associated Types§
Sourcetype Address: IpAddress<Version: AssignedAddrIpExt>
type Address: IpAddress<Version: AssignedAddrIpExt>
The type of IP address that is assigned.
Required Methods§
Sourcefn addr(&self) -> IpDeviceAddr<Self::Address>
fn addr(&self) -> IpDeviceAddr<Self::Address>
Gets the address.
Sourcefn addr_sub(
&self,
) -> AddrSubnet<Self::Address, <<Self::Address as IpAddress>::Version as AssignedAddrIpExt>::AssignedWitness>
fn addr_sub( &self, ) -> AddrSubnet<Self::Address, <<Self::Address as IpAddress>::Version as AssignedAddrIpExt>::AssignedWitness>
Gets the address subnet this ID represents.