Trait ector::ActorRequest

source ·
pub trait ActorRequest<M, R> {
    // Required method
    async fn request(&self, message: M) -> R;
}

Required Methods§

source

async fn request(&self, message: M) -> R

Attempts to send a message and wait for the response

Implementations on Foreign Types§

source§

impl<'a, M, R, MUT, const N: usize> ActorRequest<M, R> for Sender<'a, MUT, Request<M, R>, N>where M: 'static, MUT: RawMutex + 'static,

source§

async fn request(&self, message: M) -> R

source§

impl<'a, M, R> ActorRequest<M, R> for DynamicSender<'a, Request<M, R>>

source§

async fn request(&self, message: M) -> R

Implementors§