Skip to main content

send_to

Function send_to 

Source
pub fn send_to(
    ctx: &ServiceContext,
    cap: Cap,
    msg: &Message,
) -> Result<(), Error>
Expand description

Send through a capability you already hold, rather than resolving a name.

Faster and more honest than a name lookup when you have the capability: authority is the thing you hold, and this says so at the call site.