Enum actix_web::middleware::Started
source · pub enum Started {
Done,
Response(HttpResponse),
Future(Box<dyn Future<Item = Option<HttpResponse>, Error = Error>>),
}
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>>)
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
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