fn remove(
        &self,
        token: &str,
        resp: HttpResponse,
    ) -> Box<Future<Item = HttpResponse, Error = ActixWebError>> {
        Box::new(
            self.addr
                .send(DeleteIdentity {
                    token: token.to_string(),
                })
                .map_err(ActixWebError::from)
                .and_then(move |res| match res {
                    Ok(_) => Ok(resp),
                    Err(e) => {
                        error!("ERROR: {:?}", e);
                        Err(error::ErrorInternalServerError(e))
                    }
                }),
        )
    }
/// Removes an identity from the backend provider (SQL database)
Removes an identity from the backend provider (SQL database)
Removes an identity from the backend provider ( SQL database )
fn remove(
        &self,
        token: &str,
        resp: HttpResponse,
    ) -> Box<Future<Item = HttpResponse, Error = ActixWebError>> {
        Box::new(
            self.addr
                .send(DeleteIdentity {
                    token: token.to_string(),
                })
                .map_err(ActixWebError::from)
                .and_then(move |res| match res {
                    Ok(_) => Ok(resp),
                    Err(e) => {
                        error!("ERROR: {:?}", e);
                        Err(error::ErrorInternalServerError(e))
                    }
                }),
        )
    }
fn remove ( & self , token : & str , resp : HttpResponse , ) -> Box < Future < Item = HttpResponse , Error = ActixWebError > > { Box :: new ( self . addr . send ( DeleteIdentity { token : token . to_string ( ) , } ) . map_err ( ActixWebError :: from ) . and_then ( move | res | match res { Ok ( _ ) => Ok ( resp ) , Err ( e ) => { error ! ( " " e ) ; Err ( error :: ErrorInternalServerError ( e ) ) } } ) , ) }
Removes an identity from the backend provider (SQL database)
Removes an identity from the backend provider ( SQL database )
&self
token
&str
resp
HttpResponse
&self
token
&str
resp
HttpResponse