Struct httptest::ServerBuilder[][src]

pub struct ServerBuilder { /* fields omitted */ }
Expand description

Custom Server Builder.

Implementations

Create a new ServerBuilder. By default the server will listen on ipv6 loopback if available and fallback to ipv4 loopback if unable to bind to ipv6.

Specify the address the server should listen on.

Start a server.

The server will run in the background. On Drop it will terminate and assert it’s expectations.

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.

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

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.

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