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

Whether to try and shut down gracefully

Trait Implementations

impl<H: IntoHttpHandler> Handler<StopServer> for HttpServer<H>
[src]

The type of value that this handle will return

Method is called for every message received by this Actor

impl Message for StopServer
[src]

The type of value that this message will resolved with if it is successful. Read more

Auto Trait Implementations

impl Send for StopServer

impl Sync for StopServer