Trait Broadcast
netaddr2
pub trait Broadcast { type Output; fn broadcast(&self) -> Self::Output; }
Compute the "broadcast" address for supported networks.
type Output
The type of the broadcast address
fn broadcast(&self) -> Self::Output
Compute the broadcast address
impl Broadcast for NetAddr
type Output = Option<IpAddr>
impl Broadcast for Netv4Addr
type Output = Ipv4Addr
fn broadcast(&self) -> Ipv4Addr