pub struct Configuration {
pub endpoint: Endpoint,
pub handler: Option<HandlerDynArc>,
pub threads: Option<usize>,
}
Fields§
§endpoint: Endpoint
§handler: Option<HandlerDynArc>
§threads: Option<usize>
Implementations§
Source§impl Configuration
impl Configuration
pub fn builder() -> ConfigurationBuilder
pub fn localhost() -> ConfigurationBuilder
pub fn localhost_http() -> ConfigurationBuilder
pub fn localhost_https() -> ConfigurationBuilder
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Configuration
impl !RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl !UnwindSafe for Configuration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more