#[non_exhaustive]pub enum ProxySchemes {
Http,
Https,
Both,
}Expand description
Which origin URL schemes a Proxy carries. Requests for other schemes connect directly.
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.
Http
http:// origins only.
Https
https:// origins only.
Both
Both http:// and https:// origins. The default.
Trait Implementations§
Source§impl Clone for ProxySchemes
impl Clone for ProxySchemes
impl Copy for ProxySchemes
Source§impl Debug for ProxySchemes
impl Debug for ProxySchemes
Source§impl Default for ProxySchemes
impl Default for ProxySchemes
impl Eq for ProxySchemes
Source§impl PartialEq for ProxySchemes
impl PartialEq for ProxySchemes
impl StructuralPartialEq for ProxySchemes
Auto Trait Implementations§
impl Forget for ProxySchemes
impl Freeze for ProxySchemes
impl RefUnwindSafe for ProxySchemes
impl Send for ProxySchemes
impl Sync for ProxySchemes
impl Unpin for ProxySchemes
impl UnsafeUnpin for ProxySchemes
impl UnwindSafe for ProxySchemes
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.