Skip to main content

detect

Function detect 

Source
pub fn detect(override_name: Option<&str>) -> NotifyBackend
Expand description

Detect the best available notification backend.

Precedence:

  1. Explicit override_name (e.g. from --backend or [meta] notify_backend). "auto" and None both trigger auto-detection. "stderr" forces NotifyBackend::Stderr. Unknown names produce a tracing::warn! and fall through to auto-detect.
  2. Platform-appropriate auto-detect via which::which.
  3. NotifyBackend::Stderr fallback.