Struct nng::ListenerBuilder [−][src]
pub struct ListenerBuilder { /* fields omitted */ }
Expand description
Configuration utility for nanomsg-next-generation listeners.
This object allows for the configuration of listeners before they are
started. If it is not necessary to change listener settings or to close the
listener without closing the socket, then Socket::listen
provides a
simpler interface.
Implementations
Creates a new Listener
object associated with the given socket.
Note that this does not start the Listener
In order to start the
listener, this object must be consumed by ListenerBuilder::start
.
Errors
AddressInvalid
: An invalid url was specified.Closed
: The socket is not open.OutOfMemory
: Insufficient memory.