Skip to main content

from_provider

Function from_provider 

Source
pub fn from_provider(provider: &str) -> Option<&'static CliBackend>
Expand description

The backend a registry provider names, if it names one.

Returns the row whether or not it is enabled. Activation is the caller’s gate to apply and to report: a disabled backend must produce a turn that explains itself, which it cannot do if this returns None and the provider merely looks unknown.