Struct gain_listener::Listener [−][src]
pub struct Listener { pub addr: Binding, // some fields omitted }
Expand description
Connection listener.
Fields
addr: Binding
Implementations
Listen to TLS connections at BindOptions::port
. The fully-qualified
DNS name can be discovered from the Listener::addr.hostname
field.
If specified, BindOptions::prefix
is prepended to the server name.
Its length must be between 1 and 31 characters (inclusive), and it must
consist of lowercase alphanumeric ASCII characters and dash (-
). It
must not start or end with a dash. It must not start with xn--
.
Accept a client connection. An AcceptErrorKind::Closed
error may
occur due to environmental causes.
Auto Trait Implementations
impl !RefUnwindSafe for Listener
impl !UnwindSafe for Listener