Struct sled_web::server::ConfigBuilder [−][src]
pub struct ConfigBuilder {
pub addr: Option<SocketAddr>,
}A type used for building a Config.
Fields
addr: Option<SocketAddr>
Methods
impl ConfigBuilder[src]
impl ConfigBuilderⓘImportant traits for &'a mut Rpub fn addr<T>(&mut self, addr: T) -> &mut Self where
T: Into<SocketAddr>, [src]
ⓘImportant traits for &'a mut R
pub fn addr<T>(&mut self, addr: T) -> &mut Self where
T: Into<SocketAddr>, 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).
pub fn build(&mut self) -> Config[src]
pub fn build(&mut self) -> ConfigBuild the Config type, replacing None values with defaults where necessary.
Trait Implementations
impl Clone for ConfigBuilder[src]
impl Clone for ConfigBuilderfn clone(&self) -> ConfigBuilder[src]
fn clone(&self) -> ConfigBuilderReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for ConfigBuilder[src]
impl Default for ConfigBuilderfn default() -> ConfigBuilder[src]
fn default() -> ConfigBuilderReturns the "default value" for a type. Read more
impl Eq for ConfigBuilder[src]
impl Eq for ConfigBuilderimpl Hash for ConfigBuilder[src]
impl Hash for ConfigBuilderfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for ConfigBuilder[src]
impl PartialEq for ConfigBuilderfn eq(&self, other: &ConfigBuilder) -> bool[src]
fn eq(&self, other: &ConfigBuilder) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ConfigBuilder) -> bool[src]
fn ne(&self, other: &ConfigBuilder) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for ConfigBuilder
impl Send for ConfigBuilderimpl Sync for ConfigBuilder
impl Sync for ConfigBuilder