Skip to main content

interface_accepts_class

Function interface_accepts_class 

Source
pub fn interface_accepts_class(
    class_name: &str,
    peer_class_filter: &[String],
) -> bool
Expand description

Allow-list check: may a peer of a given class communicate on the given interface?

peer_class_filter is empty → every class is allowed. Otherwise the class_name must appear in the filter list.