Struct sled_web::server::ConfigBuilder[][src]

pub struct ConfigBuilder {
    pub addr: Option<SocketAddr>,
}

A type used for building a Config.

Fields

Methods

impl ConfigBuilder
[src]

Important traits for &'a mut R

The socket address to which the server will bind and listen for HTTP requests.

Defaults to localhost:3000. E.g. ([127, 0, 0, 1], 3000).

Build the Config type, replacing None values with defaults where necessary.

Trait Implementations

impl Clone for ConfigBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for ConfigBuilder
[src]

Returns the "default value" for a type. Read more

impl Eq for ConfigBuilder
[src]

impl Hash for ConfigBuilder
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for ConfigBuilder
[src]

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

This method tests for !=.

Auto Trait Implementations