Struct actix_web::server::StopServer
source · pub struct StopServer {
pub graceful: bool,
}
Expand description
Stop incoming connection processing, stop all workers and exit.
If server starts with spawn()
method, then spawned thread get terminated.
Fields
graceful: bool
Whether to try and shut down gracefully
Trait Implementations
sourceimpl Handler<StopServer> for Server
impl Handler<StopServer> for Server
Auto Trait Implementations
impl RefUnwindSafe for StopServer
impl Send for StopServer
impl Sync for StopServer
impl Unpin for StopServer
impl UnwindSafe for StopServer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more