Skip to main content

IngressAuthorizer

Trait IngressAuthorizer 

Source
pub trait IngressAuthorizer: Send + Sync {
    // Required method
    fn authorize_ingress(&self, peer: &PeerIdentity, tenant: &str) -> bool;
}
Expand description

Trusted decision for granting an admitted peer ingress into a tenant’s shared origin. Admission proves the peer identity and tenant only; it does not imply that the peer may publish. The default is therefore deny.

Required Methods§

Source

fn authorize_ingress(&self, peer: &PeerIdentity, tenant: &str) -> bool

Whether this already-admitted peer may publish to the supplied tenant.

Implementors§

Source§

impl<F> IngressAuthorizer for F
where F: Fn(&PeerIdentity, &str) -> bool + Send + Sync,