Skip to main content

AuthenticatedRoutePolicy

Trait AuthenticatedRoutePolicy 

Source
pub trait AuthenticatedRoutePolicy<Peer, Identity> {
    type Error;

    // Required method
    fn route<'a>(
        &'a self,
        target: ConnectTarget,
        context: AuthenticatedRouteContext<'a, Peer, Identity>,
    ) -> Pin<Box<dyn Future<Output = Result<ConnectTarget, Self::Error>> + 'a>>;
}
Expand description

Optional policy that validates or refines a destination after authentication.

Required Associated Types§

Source

type Error

Application policy failure.

Required Methods§

Source

fn route<'a>( &'a self, target: ConnectTarget, context: AuthenticatedRouteContext<'a, Peer, Identity>, ) -> Pin<Box<dyn Future<Output = Result<ConnectTarget, Self::Error>> + 'a>>

Validates or refines the startup-selected target using typed identity evidence.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§