Method lrs::socket::Socket::bind

Binds the socket to an address.

Syntax

impl Socket {
    fn bind<A>(&self, addr: A) -> Result<(), Errno>
        where A: AsRef<[u8]>,
}

Arguments

NameDescription
addr

The address the socket will be bound to.

See also