Skip to main content

peer

Function peer 

Source
pub fn peer(ctx: &ServiceContext, name: &str) -> Option<Cap>
Expand description

A capability to a peer this service was wired to at spawn, by name.

The same set as peer_at, addressed by the peer’s name rather than by position. Use this when the spawn request names several peers and position would be a guess.