[−][src]Trait splinter::network::auth::AuthorizationCallback
A callback for changes in a peer's authorization state.
Required methods
fn on_authorization_change(
&self,
peer_id: &str,
state: PeerAuthorizationState
) -> Result<(), AuthorizationCallbackError>
&self,
peer_id: &str,
state: PeerAuthorizationState
) -> Result<(), AuthorizationCallbackError>
This function is called when a peer's state changes to Authorized or Unauthorized.
Implementors
impl<F> AuthorizationCallback for F where
F: Fn(&str, PeerAuthorizationState) -> Result<(), AuthorizationCallbackError> + Send,
[src]
F: Fn(&str, PeerAuthorizationState) -> Result<(), AuthorizationCallbackError> + Send,
fn on_authorization_change(
&self,
peer_id: &str,
state: PeerAuthorizationState
) -> Result<(), AuthorizationCallbackError>
[src]
&self,
peer_id: &str,
state: PeerAuthorizationState
) -> Result<(), AuthorizationCallbackError>