Struct fire_http::FireBuilder

source ·
pub struct FireBuilder { /* private fields */ }
Expand description

FireBuilder gathers all materials needed to light a fire (start a server).

Implementations

Returns a reference to the current data.

Adds a RawRoute to the fire.

Adds a Route to the fire.

Adds a Catcher to the fire.

Sets the request size limit. The default is 4 kilobytes.

This can be changed in every Route.

Panics

If the size is zero.

Sets the request timeout. The default is 60 seconds.

This can be changed in every Route.

Prevents the fire from showing a message when the server get’s started.

Binds to the address and prepares to serve requests.

You need to call ignite on the Fire so that it starts handling requests.

Ignites the fire, which starts the server.

Note

Under normal conditions this function should run forever.

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.

Should always be Self
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