[][src]Trait holochain_cas_implementations::actor::AskSelf

pub trait AskSelf {
    fn block_on_ask(
        &self,
        message: Protocol
    ) -> Result<Protocol, HolochainError>; }

convenience trait to build fake synchronous facades for actors

Required Methods

adapter for synchronous code to interact with an actor uses the ask() fn from riker patterns under the hood to create a future then block on it handles passing the actor system through to ask() to hide that implementation detail @see http://riker.rs/patterns/#ask

Implementations on Foreign Types

impl AskSelf for ActorRef<Protocol>
[src]

Implementors