pub trait ActorSendDyn: Send + Sync + 'static {
    // Required methods
    fn invoke<'a>(
        &'a self,
        req: &'a [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Global>> + Send + 'a>>;
    fn metadata(
        &self
    ) -> Pin<Box<dyn Future<Output = Result<Arc<Metadata>, Global>> + Send + '_>>;
    fn size(
        &self
    ) -> Pin<Box<dyn Future<Output = Result<u64, Global>> + Send + '_>>;
    fn instance_count(
        &self
    ) -> Pin<Box<dyn Future<Output = Result<u8, Global>> + Send + '_>>;
    fn id(&self) -> Option<ActorId>;
}

Required Methods§

fn invoke<'a>( &'a self, req: &'a [u8] ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Global>> + Send + 'a>>

fn metadata( &self ) -> Pin<Box<dyn Future<Output = Result<Arc<Metadata>, Global>> + Send + '_>>

fn size(&self) -> Pin<Box<dyn Future<Output = Result<u64, Global>> + Send + '_>>

fn instance_count( &self ) -> Pin<Box<dyn Future<Output = Result<u8, Global>> + Send + '_>>

fn id(&self) -> Option<ActorId>

Trait Implementations§

§

impl Actor for Box<dyn ActorSendDyn>

§

async fn invoke(&self, req: &[u8]) -> Result<Vec<u8>, Global>

§

async fn metadata(&self) -> Result<Arc<Metadata>, Global>

§

fn id(&self) -> Option<ActorId>

§

async fn size(&self) -> Result<u64, Global>

§

async fn instance_count(&self) -> Result<u8, Global>

Implementors§

§

impl<T> ActorSendDyn for Twhere T: ActorSend,