[−][src]Trait holochain_cas_implementations::actor::AskSelf
convenience trait to build fake synchronous facades for actors
Required Methods
fn block_on_ask(&self, message: Protocol) -> Result<Protocol, HolochainError>
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]
impl AskSelf for ActorRef<Protocol>
fn block_on_ask(&self, message: Protocol) -> Result<Protocol, HolochainError>
[src]
fn block_on_ask(&self, message: Protocol) -> Result<Protocol, HolochainError>