Skip to main content

NotificationHandler

Type Alias NotificationHandler 

Source
pub type NotificationHandler = Box<dyn Fn(&str, Option<Value>, Vec<OwnedFd>) -> Result<()> + Send + Sync>;
Expand description

Handler function for JSON-RPC notifications.

Takes the method name, optional parameters, and received file descriptors.

Aliased Typeยง

pub struct NotificationHandler(/* private fields */);