Skip to main content

throw

Macro throw 

Source
macro_rules! throw {
    ($a:expr, $b:expr) => { ... };
}
Expand description

Examples

 async fn test(req: actix_web::HttpRequest) -> impl Responder {
     return throw!(&req, errcode::VALID_CODE_ERROR);
 }