pub(crate) fn run_actor_post_invoke(
    resp: InvocationResponse,
    middlewares: &[Box<dyn Middleware>],
) -> Result<InvocationResponse> {
    let mut cur_resp = resp;
    for m in middlewares {
        match m.actor_post_invoke(cur_resp) {
            Ok(i) => cur_resp = i.clone(),
            Err(e) => {
                error!("Actor post-invoke middleware failure: {}", e);
                return Err(e);
            }
        }
    }
    Ok(cur_resp)
}
/// Executes a chain of post-invoke handlers for an actor
Executes a chain of post-invoke handlers for an actor
Executes a chain of post - invoke handlers for an actor
pub(crate) fn run_actor_post_invoke(
    resp: InvocationResponse,
    middlewares: &[Box<dyn Middleware>],
) -> Result<InvocationResponse> {
    let mut cur_resp = resp;
    for m in middlewares {
        match m.actor_post_invoke(cur_resp) {
            Ok(i) => cur_resp = i.clone(),
            Err(e) => {
                error!("Actor post-invoke middleware failure: {}", e);
                return Err(e);
            }
        }
    }
    Ok(cur_resp)
}
pub ( crate ) fn run_actor_post_invoke ( resp : InvocationResponse , middlewares : & [ Box < dyn Middleware > ] , ) -> Result < InvocationResponse > { let mut cur_resp = resp ; for m in middlewares { match m . actor_post_invoke ( cur_resp ) { Ok ( i ) => cur_resp = i . clone ( ) , Err ( e ) => { error ! ( " " e ) ; return Err ( e ) ; } } } Ok ( cur_resp ) }
Executes a chain of post-invoke handlers for an actor
Executes a chain of post - invoke handlers for an actor
resp
InvocationResponse
middlewares
&[Box<dyn Middleware>]
resp
InvocationResponse
middlewares
&[Box<dyn Middleware>]