netstack3_ip::device

Trait AssignedAddressState

Source
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§

Source

type Address: IpAddress<Version: AssignedAddrIpExt>

The type of IP address that is assigned.

Required Methods§

Source

fn addr(&self) -> IpDeviceAddr<Self::Address>

Gets the address.

Source

fn addr_sub( &self, ) -> AddrSubnet<Self::Address, <<Self::Address as IpAddress>::Version as AssignedAddrIpExt>::AssignedWitness>

Gets the address subnet this ID represents.

Implementors§