Skip to main content

active_source

Function active_source 

Source
pub async fn active_source(ctx: &Ctx, backend: &dyn Backend) -> Result<Source>
Expand description

Resolve the single source to use right now for backend.

  • pin (config) always wins if the id exists.
  • Selection::Auto uses cached probe results when fresh, else probes.
  • Selection::Ordered returns the highest-priority enabled source.