pub enum Response {
Done(HttpResponse),
Future(Box<dyn Future<Item = HttpResponse, Error = Error> + 'static, Global>),
}
Expand description
Middleware execution result
Variants§
Done(HttpResponse)
New http response got generated
Future(Box<dyn Future<Item = HttpResponse, Error = Error> + 'static, Global>)
Result is a future that resolves to a new http response
Auto Trait Implementations§
impl !RefUnwindSafe for Response
impl !Send for Response
impl !Sync for Response
impl Unpin for Response
impl !UnwindSafe for Response
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