Struct cosworth::prelude::server::StopServer
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§
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§
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more