Activation

Trait Activation 

Source
pub trait Activation: Action {
    // Required method
    async fn send<S: AsRef<[u8]>>(
        self,
        code_id: CodeId,
        salt: S,
    ) -> Result<impl Reply<Output = ActorId>>;

    // Provided method
    async fn send_recv<S: AsRef<[u8]>>(
        self,
        code_id: CodeId,
        salt: S,
    ) -> Result<ActorId>
       where Self: Sized { ... }
}

Required Methods§

Source

async fn send<S: AsRef<[u8]>>( self, code_id: CodeId, salt: S, ) -> Result<impl Reply<Output = ActorId>>

Provided Methods§

Source

async fn send_recv<S: AsRef<[u8]>>( self, code_id: CodeId, salt: S, ) -> Result<ActorId>
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<TRemoting, TActionIo> Activation for RemotingAction<TRemoting, TActionIo>
where TRemoting: Remoting, TActionIo: ActionIo<Reply = ()>,