[][src]Trait wascc_host::middleware::Middleware

pub trait Middleware: Send + Sync + 'static {
    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>; }

The trait that must be implemented by all waSCC middleware

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>

Loading content...

Implementors

Loading content...