pub struct QuicServer { /* private fields */ }
Available on crate features dns-over-quic and tokio-runtime only.
Expand description

A DNS-over-QUIC Server, see QuicClientStream for the client counterpart

Implementations

Construct the new Acceptor with the associated pkcs12 data

Construct the new server with an existing socket

Get the next incoming stream

Returns

A remote connection that could have many potential bi-directional streams and the remote socket address

Returns the address this server is listening on

This can be useful in tests, where a random port can be associated with the server by binding on 127.0.0.1:0 and then getting the associated port address with this function.

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more