pub(crate) fn run_actor_pre_invoke(
    inv: &Invocation,
    middlewares: &[Box<dyn Middleware>],
) -> Result<()> {
    for m in middlewares {
        if let Err(e) = m.actor_pre_invoke(&inv) {
            error!("Actor pre-invoke middleware failure: {}", e);
            return Err(e);
        }
    }
    Ok(())
}
/// Executes a chain of pre-invoke handlers for an actor
Executes a chain of pre-invoke handlers for an actor
Executes a chain of pre - invoke handlers for an actor
pub(crate) fn run_actor_pre_invoke(
    inv: &Invocation,
    middlewares: &[Box<dyn Middleware>],
) -> Result<()> {
    for m in middlewares {
        if let Err(e) = m.actor_pre_invoke(&inv) {
            error!("Actor pre-invoke middleware failure: {}", e);
            return Err(e);
        }
    }
    Ok(())
}
pub ( crate ) fn run_actor_pre_invoke ( inv : & Invocation , middlewares : & [ Box < dyn Middleware > ] , ) -> Result < ( ) > { for m in middlewares { if let Err ( e ) = m . actor_pre_invoke ( & inv ) { error ! ( " " e ) ; return Err ( e ) ; } } Ok ( ( ) ) }
Executes a chain of pre-invoke handlers for an actor
Executes a chain of pre - invoke handlers for an actor
inv
&Invocation
middlewares
&[Box<dyn Middleware>]
inv
&Invocation
middlewares
&[Box<dyn Middleware>]