Trait net_types::BroadcastAddress

source ·
pub trait BroadcastAddress {
    // Required method
    fn is_broadcast(&self) -> bool;
}
Expand description

Addresses that can be broadcast.

BroadcastAddress is implemented by address types for which some values are considered broadcast addresses. Broadcast addresses are used to identify all the nodes in some region of a network, as opposed to unicast addresses, which identify a single node, or multicast addresses, which identify a group of nodes (not necessarily all of them).

Required Methods§

source

fn is_broadcast(&self) -> bool

Is this a broadcast address?

If this type also implements SpecifiedAddress, then a.is_broadcast() implies a.is_specified().

Implementors§