Struct static_web_server::server::Server
source · pub struct Server { /* private fields */ }
Expand description
Define a multi-threaded HTTP or HTTP/2 web server.
Implementations§
source§impl Server
impl Server
sourcepub fn run_standalone(self, cancel: Option<Receiver<()>>) -> Result
pub fn run_standalone(self, cancel: Option<Receiver<()>>) -> Result
Run the multi-threaded Server
as standalone.
This is a top-level function of run_server_on_rt.
It accepts an optional cancel
parameter to shut down the server
gracefully on demand as a complement to the termination signals handling.
Auto Trait Implementations§
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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