Method lrs::socket::SockAddr::as_mut_ipv4

Returns the socket address as a mutable Ipv4 socket address.

Syntax

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

Remarks

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