Struct kern::http::server::HttpServerBuilder
source · pub struct HttpServerBuilder<S: Send + Sync + 'static> { /* private fields */ }
Expand description
Builder for HttpServer
Implementations§
source§impl<S: Send + Sync + 'static> HttpServerBuilder<S>
impl<S: Send + Sync + 'static> HttpServerBuilder<S>
sourcepub fn settings(self, settings: HttpSettings) -> Self
pub fn settings(self, settings: HttpSettings) -> Self
Set HttpSettings
sourcepub fn error_handler(self, error_handler: ErrorHandler<S>) -> Self
pub fn error_handler(self, error_handler: ErrorHandler<S>) -> Self
Set error handler
Trait Implementations§
source§impl<S: Clone + Send + Sync + 'static> Clone for HttpServerBuilder<S>
impl<S: Clone + Send + Sync + 'static> Clone for HttpServerBuilder<S>
source§fn clone(&self) -> HttpServerBuilder<S>
fn clone(&self) -> HttpServerBuilder<S>
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<S> RefUnwindSafe for HttpServerBuilder<S>
impl<S> Send for HttpServerBuilder<S>
impl<S> Sync for HttpServerBuilder<S>
impl<S> Unpin for HttpServerBuilder<S>
impl<S> UnwindSafe for HttpServerBuilder<S>
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