Struct ezhttp::HttpServerStarter
source · pub struct HttpServerStarter<T: HttpServer + Send + 'static> { /* private fields */ }Implementations§
source§impl<T: HttpServer + Send + 'static> HttpServerStarter<T>
impl<T: HttpServer + Send + 'static> HttpServerStarter<T>
pub fn http_server(self, http_server: T) -> Self
pub fn support_http_rrs(self, support_http_rrs: bool) -> Self
pub fn host(self, host: String) -> Self
pub fn start(self) -> RunningHttpServer
Auto Trait Implementations§
impl<T> Freeze for HttpServerStarter<T>where
T: Freeze,
impl<T> RefUnwindSafe for HttpServerStarter<T>where
T: RefUnwindSafe,
impl<T> Send for HttpServerStarter<T>
impl<T> Sync for HttpServerStarter<T>where
T: Sync,
impl<T> Unpin for HttpServerStarter<T>where
T: Unpin,
impl<T> UnwindSafe for HttpServerStarter<T>where
T: UnwindSafe,
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