Struct sled_web::server::Config[][src]

pub struct Config {
    pub addr: SocketAddr,
}

Configuration for the server.

Fields

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).

Methods

impl Config
[src]

DEFAULT_IP: [u8; 4] = [127, 0, 0, 1]

The default IP address used if a socket address is not specified.

DEFAULT_PORT: u16 = 3000

The default port used if a socket address is not specified.

DEFAULT_ADDR: ([u8; 4], u16) = (<Self>::DEFAULT_IP, <Self>::DEFAULT_PORT)

The default socket address used if one is not specified.

Trait Implementations

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Config
[src]

Formats the value using the given formatter. Read more

impl Eq for Config
[src]

impl Hash for Config
[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 Config
[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

impl Send for Config

impl Sync for Config