#[non_exhaustive]pub enum PacRequirement<'a> {
NotNeeded,
Inline(&'a str),
Fetch(&'a Url),
Discover,
}Available on crate feature
pac only.Expand description
What requirement says a ProxyMode needs before routing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotNeeded
No auto-config; resolve already answers.
Inline(&'a str)
Body already in the snapshot (ProxyMode::PacInline).
Fetch(&'a Url)
Fetch this URL and pass the body (ProxyMode::Pac).
Discover
WPAD on; this crate runs no DHCP 252 / DNS wpad. discovery (collision risk).
Windows / macOS / iOS: the native resolver built with_wpad(true) hands it to the OS.
Else: inline or fetched script.
Trait Implementations§
Source§impl<'a> Clone for PacRequirement<'a>
impl<'a> Clone for PacRequirement<'a>
Source§impl Debug for PacRequirement<'_>
impl Debug for PacRequirement<'_>
impl<'a> Eq for PacRequirement<'a>
Source§impl<'a> PartialEq for PacRequirement<'a>
impl<'a> PartialEq for PacRequirement<'a>
impl<'a> StructuralPartialEq for PacRequirement<'a>
Auto Trait Implementations§
impl<'a> Freeze for PacRequirement<'a>
impl<'a> RefUnwindSafe for PacRequirement<'a>
impl<'a> Send for PacRequirement<'a>
impl<'a> Sync for PacRequirement<'a>
impl<'a> Unpin for PacRequirement<'a>
impl<'a> UnsafeUnpin for PacRequirement<'a>
impl<'a> UnwindSafe for PacRequirement<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more