pub enum Started {
Done,
Response(HttpResponse),
Future(Box<dyn Future<Item = Option<HttpResponse>, Error = Error> + 'static, Global>),
}
Expand description
Middleware start result
Variants§
Done
Middleware is completed, continue to next middleware
Response(HttpResponse)
New http response got generated. If middleware generates response handler execution halts.
Future(Box<dyn Future<Item = Option<HttpResponse>, Error = Error> + 'static, Global>)
Execution completed, runs future to completion.
Auto Trait Implementations§
impl !RefUnwindSafe for Started
impl !Send for Started
impl !Sync for Started
impl Unpin for Started
impl !UnwindSafe for Started
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