pub struct DroughterBuilder { /* private fields */ }
Expand description

A builder struct for Droughter.

See the module-level docs for more.

Implementations§

Adds an arbitrary Drought to the resulting Droughter, with the specified priority level.

A chainable version of insert_drought.

Creates a new Drought, which ferries requests to a Droughter, if the resource name matches path.

A chainable version of insert_sub.

Creates a new Drought, which ferries requests to a Droughter, if the resource name is parseable as T. The match gets stored in the Matches as name.

A chainable version of insert_typed.

Creates a new Drought, which ferries requests to a Droughter, if the resource name matches regex. The match gets stored in the Matches as name.

A chainable version of insert_matched.

Creates a new Drought, which will directly pass calls to Drought::handle to func.

A chainable version of insert_lambda.

Adds an arbitrary RequestIrrigator to the resulting Droughter.

A chainable version of insert_request_irrigator.

Creates a new RequestIrrigator, which will directly pass calls to RequestIrrigator::map to func.

A chainable version of insert_request_irrigator_lambda.

Adds an arbitrary ResponseIrrigator to the resulting Droughter.

A chainable version of insert_response_irrigator.

Creates a new Drought, which will directly pass calls to Drought::handle to func.

A chainable version of insert_lambda.

Builds the Droughter with no index.

Builds the Droughter with root as the index.

Builds the Droughter with root as the index.

Trait Implementations§

Returns the “default value” for a type. Read more

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.

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.