Trait workflow_nw::ipc::ipc::IpcDispatch

source ·
pub trait IpcDispatch {
    // Required method
    fn as_target(&self) -> IpcTarget;

    // Provided methods
    fn notify<'life0, 'async_trait, Ops, Msg>(
        &'life0 self,
        op: Ops,
        payload: Msg,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Ops: OpsT + 'async_trait,
             Msg: BorshSerialize + Send + Sync + 'static + 'async_trait,
             Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn call<'life0, 'async_trait, Ops, Req, Resp>(
        &'life0 self,
        op: Ops,
        req: Req,
    ) -> Pin<Box<dyn Future<Output = Result<Resp>> + Send + 'async_trait>>
       where Ops: OpsT + 'async_trait,
             Req: MsgT + 'async_trait,
             Resp: MsgT + 'async_trait,
             Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn call_with_source<'life0, 'life1, 'async_trait, Ops, Req, Resp>(
        &'life0 self,
        op: Ops,
        req: Req,
        source: &'life1 IpcTarget,
    ) -> Pin<Box<dyn Future<Output = Result<Resp>> + Send + 'async_trait>>
       where Ops: OpsT + 'async_trait,
             Req: MsgT + 'async_trait,
             Resp: MsgT + 'async_trait,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

Provided Methods§

source

fn notify<'life0, 'async_trait, Ops, Msg>( &'life0 self, op: Ops, payload: Msg, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Ops: OpsT + 'async_trait, Msg: BorshSerialize + Send + Sync + 'static + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn call<'life0, 'async_trait, Ops, Req, Resp>( &'life0 self, op: Ops, req: Req, ) -> Pin<Box<dyn Future<Output = Result<Resp>> + Send + 'async_trait>>
where Ops: OpsT + 'async_trait, Req: MsgT + 'async_trait, Resp: MsgT + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn call_with_source<'life0, 'life1, 'async_trait, Ops, Req, Resp>( &'life0 self, op: Ops, req: Req, source: &'life1 IpcTarget, ) -> Pin<Box<dyn Future<Output = Result<Resp>> + Send + 'async_trait>>
where Ops: OpsT + 'async_trait, Req: MsgT + 'async_trait, Resp: MsgT + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§