Method lrs::socket::SockAddr::as_mut_ipv6

Returns the socket address as a mutable Ipv6 socket address.

Syntax

impl SockAddr {
    fn as_mut_ipv6(&mut self) -> Result<&mut Ipv6SockAddr, Errno>
}

Remarks

This fails if the address is not an Ipv6 socket address.