[][src]Function splinter::network::auth::handlers::create_authorization_dispatcher

pub fn create_authorization_dispatcher(
    auth_manager: AuthorizationManager,
    network_sender: Box<dyn Sender<SendRequest>>
) -> Dispatcher<AuthorizationMessageType>

Create a Dispatcher for Authorization messages

Creates and configures a Dispatcher to handle messages from an AuthorizationMessage envelope. The dispatcher is provided the given network sender for response messages, and the network itself to handle updating identities (or removing connections with authorization failures).

The identity provided is sent to connections for Trust authorizations.