Skip to main content

OnKeyChange

Type Alias OnKeyChange 

Source
pub type OnKeyChange = Arc<dyn Fn(&str, &str, &str) -> bool + Send + Sync>;
Expand description

Callback for TOFU key change events. Must return true to accept the new key, or false to reject. If absent, key changes are rejected by default.

Aliased Typeยง

pub struct OnKeyChange { /* private fields */ }