pub trait Middleware: Send + Sync {
// Provided methods
fn before(
&self,
_dim: Dim,
_actor: &ActorId,
_in: &[u8],
_ctx: &AppCtx,
) -> Result<()> { ... }
fn after(
&self,
_dim: Dim,
_actor: &ActorId,
_in: &[u8],
_out: &[u8],
_ctx: &AppCtx,
) -> Result<()> { ... }
}Expand description
Middleware simples (before/after).