#[non_exhaustive]pub enum ProxyAuthTransportPolicy {
RequireTls,
AllowPlaintext,
}Expand description
Controls whether proxy credentials may be sent without TLS to the proxy.
Target wss encryption starts after CONNECT and does not protect HTTP proxy
authentication. Localhost and private-network proxies receive no exemption.
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.
RequireTls
Reject authentication unless the connection to the proxy uses TLS.
AllowPlaintext
Explicitly permit Basic credentials on a plaintext HTTP connection.
Trait Implementations§
Source§impl Clone for ProxyAuthTransportPolicy
impl Clone for ProxyAuthTransportPolicy
impl Copy for ProxyAuthTransportPolicy
Source§impl Debug for ProxyAuthTransportPolicy
impl Debug for ProxyAuthTransportPolicy
Source§impl Default for ProxyAuthTransportPolicy
impl Default for ProxyAuthTransportPolicy
impl Eq for ProxyAuthTransportPolicy
Source§impl PartialEq for ProxyAuthTransportPolicy
impl PartialEq for ProxyAuthTransportPolicy
impl StructuralPartialEq for ProxyAuthTransportPolicy
Auto Trait Implementations§
impl Freeze for ProxyAuthTransportPolicy
impl RefUnwindSafe for ProxyAuthTransportPolicy
impl Send for ProxyAuthTransportPolicy
impl Sync for ProxyAuthTransportPolicy
impl Unpin for ProxyAuthTransportPolicy
impl UnsafeUnpin for ProxyAuthTransportPolicy
impl UnwindSafe for ProxyAuthTransportPolicy
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