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

Cause the Listener to start listening on the address with which it was created.

The returned handle controls the life of the Listener. If it is dropped, the Listener is shut down and no more messages will be received on it.

Errors
  • Closed: The socket is not open.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Reads the specified option from the object.

Writes the specified option to the object.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.