pub fn grant(layout: &impl Layout<EndpointId>, peer: EndpointId) -> GrantExpand description
Returns the grant a node gives peer under layout.
The peer may subscribe to anything, and publish only under its
scope in layout.
pub fn grant(layout: &impl Layout<EndpointId>, peer: EndpointId) -> GrantReturns the grant a node gives peer under layout.
The peer may subscribe to anything, and publish only under its
scope in layout.