pub trait Middleware:
Send
+ Sync
+ 'static {
// Required methods
fn actor_pre_invoke(&self, inv: Invocation) -> Result<Invocation>;
fn actor_invoke(
&self,
inv: Invocation,
handler: InvocationHandler<'_>,
) -> Result<MiddlewareResponse>;
fn actor_post_invoke(
&self,
response: InvocationResponse,
) -> Result<InvocationResponse>;
fn capability_pre_invoke(&self, inv: Invocation) -> Result<Invocation>;
fn capability_invoke(
&self,
inv: Invocation,
handler: InvocationHandler<'_>,
) -> Result<MiddlewareResponse>;
fn capability_post_invoke(
&self,
response: InvocationResponse,
) -> Result<InvocationResponse>;
}
Expand description
The trait that must be implemented by all waSCC middleware