Struct scratch_server::HttpServer
source · pub struct HttpServer {
pub port: u16,
pub threads: usize,
pub cert_path: Option<PathBuf>,
pub cert_pass: Option<String>,
pub router: Router,
/* private fields */
}
Fields§
§port: u16
§threads: usize
§cert_path: Option<PathBuf>
§cert_pass: Option<String>
§router: Router
Implementations§
source§impl HttpServer
impl HttpServer
Auto Trait Implementations§
impl Freeze for HttpServer
impl !RefUnwindSafe for HttpServer
impl Send for HttpServer
impl Sync for HttpServer
impl Unpin for HttpServer
impl !UnwindSafe for HttpServer
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