[][src]Macro stakker::ret_some_to

macro_rules! ret_some_to {
    ($($x:tt)*) => { ... };
}

Create a Ret instance for actor calls, ignoring drops

This is guaranteed to be called at most once. Dropping the Ret instance is ignored, unlike ret_to!, so the message is passed through without an Option wrapper, just like fwd_to!. The underlying closure is a FnOnce, so non-Copy types can be passed. The syntax is the same as for fwd_to!, and messages are received in exactly the same way in the target actor method.

This example is not tested
ret_some_to!(...arguments-as-for-fwd_to-macro...);

Implemented using Ret::some_to_actor or Ret::some_to_actor_prep.