Struct actix_web::server::StopServer
[−]
[src]
pub struct StopServer {
pub graceful: bool,
}Stop incoming connection processing, stop all workers and exit.
If server starts with spawn() method, then spawned thread get terminated.
Fields
graceful: bool
Trait Implementations
impl<H: IntoHttpHandler> Handler<StopServer> for HttpServer<H>[src]
type Result = Response<(), ()>
The type of value that this handle will return
fn handle(&mut self, msg: StopServer, ctx: &mut Context<Self>) -> Self::Result[src]
Method is called for every message received by this Actor