Macro notify
Source macro_rules! notify {
(@level error) => { ... };
(@level warn) => { ... };
(@level info) => { ... };
(@level success) => { ... };
(@level debug) => { ... };
($level:ident, location = $loc:ident, stack = $stack:ident ($($sk:expr),+), $msg:expr $(, $arg:expr)* $(,)?) => { ... };
($level:ident, location = $loc:ident, lifecycle = $lc:ident, $msg:expr $(, $arg:expr)* $(,)?) => { ... };
($level:ident, location = $loc:ident, $msg:expr $(, $arg:expr)* $(,)?) => { ... };
($level:ident, target: $target:expr, $msg:expr $(, $arg:expr)* $(,)?) => { ... };
($level:ident, $msg:expr $(, $arg:expr)* $(,)?) => { ... };
($msg:expr $(, $arg:expr)* $(,)?) => { ... };
}
Expand description
Emit a notification through the global notifier.
§Syntax
ⓘnotify!(level, "message {}", arg);
notify!(level, location = Toast, "message");
notify!(level, location = Status, stack = replace("key"), "message");
notify!(debug, target: "auto_snapshot", "snapshot {}", name);