Skip to main content

grant

Function grant 

Source
pub fn grant(layout: &impl Layout<EndpointId>, peer: EndpointId) -> Grant
Expand description

Returns the grant a node gives peer under layout.

The peer may subscribe to anything, and publish only under its scope in layout.