Enum humphrey_server::config::config::RouteConfig[][src]

pub enum RouteConfig {
    Serve {
        matches: String,
        directory: String,
    },
    Proxy {
        matches: String,
        load_balancer: EqMutex<LoadBalancer>,
    },
}
Expand description

Represents configuration for a specific route.

Variants

Serve

Serve files from a directory

Fields of Serve

matches: String

Wildcard string specifying what URIs to match

directory: String

Directory to serve files from

Proxy

Proxy connections to the specified target(s), load balancing if necessary

Fields of Proxy

matches: String

Wildcard string specifying what URIs to match

load_balancer: EqMutex<LoadBalancer>

Load balancer instance

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.