Skip to main content

NotifyTrustPolicy

Trait NotifyTrustPolicy 

Source
pub trait NotifyTrustPolicy:
    Send
    + Sync
    + 'static {
    // Required method
    fn accepts(
        &self,
        selected_target: &Peer,
        received_from: &Peer,
        request: &Request,
    ) -> bool;
}
Expand description

Policy applied before a NOTIFY can select or mutate a dialog.

Required Methods§

Source

fn accepts( &self, selected_target: &Peer, received_from: &Peer, request: &Request, ) -> bool

Whether this request arrived through an authorized peer/connection.

Implementors§