zynagent-first application framework

Back to the API reference

zyn.NotificationRegistration#

/// One compile-time registered notification handler.
pub const NotificationRegistration = struct {
    /// Stable name stored with notification work.
    name: []const u8,

    /// Registers a typed notification callback.
    pub fn notification(comptime name: []const u8, comptime handler: anytype) NotificationRegistration;
};