Method lrs::socket::ip::Ipv6Addr::multicast

Creates the well-known "All nodes" multicast address with a certain scope.

Syntax

impl Ipv6Addr {
    fn multicast(scope: Ipv6Scope) -> Ipv6Addr
}

Arguments

NameDescription
scope

The scope of the multicast address.

Remarks

The created address is ff0?::1 where ? depends on the scope.

Only the Interface and Link scopes are valid.