Trait netstack3_ip::device::IpAddressId
source · pub trait IpAddressId<A: IpAddress>: Clone + Eq + Debug + Hash {
type Weak: WeakIpAddressId<A>;
// Required methods
fn downgrade(&self) -> Self::Weak;
fn addr(&self) -> IpDeviceAddr<A>;
fn addr_sub(
&self,
) -> AddrSubnet<A, <A::Version as IpDeviceIpExt>::AssignedWitness>
where A::Version: IpDeviceIpExt;
}
Expand description
An IP address ID.
Required Associated Types§
Required Methods§
sourcefn addr(&self) -> IpDeviceAddr<A>
fn addr(&self) -> IpDeviceAddr<A>
Returns the address this ID represents.
sourcefn addr_sub(
&self,
) -> AddrSubnet<A, <A::Version as IpDeviceIpExt>::AssignedWitness>where
A::Version: IpDeviceIpExt,
fn addr_sub(
&self,
) -> AddrSubnet<A, <A::Version as IpDeviceIpExt>::AssignedWitness>where
A::Version: IpDeviceIpExt,
Returns the address subnet this ID represents.
Object Safety§
This trait is not object safe.