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.

Detach the closing functionality. When the CloseStream is closed or dropped, the Acceptor will return an AcceptErrorKind::Closed error.

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.

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.