Skip to main content

RelayPolicy

Trait RelayPolicy 

Source
pub trait RelayPolicy:
    Send
    + Sync
    + 'static {
    // Provided method
    fn decide(
        &self,
        direction: RelayDirection,
        payload: &Bytes,
    ) -> RelayDecision { ... }
}

Provided Methods§

Source

fn decide(&self, direction: RelayDirection, payload: &Bytes) -> RelayDecision

Implementors§