pub fn requirement(mode: &ProxyMode) -> PacRequirement<'_>Available on crate feature
pac only.Expand description
What mode needs before evaluate can be called for it.
assert_eq!(requirement(&ProxyMode::Direct), PacRequirement::NotNeeded);
let inline = ProxyMode::pac_inline("…".to_owned());
assert_eq!(requirement(&inline), PacRequirement::Inline("…"));