pub struct ProxyConfig { /* private fields */ }Expand description
Immutable configuration for one proxy generation.
Authentication is intentionally absent: RunningProxy must generate a mandatory fresh
crate::auth::ProxyAuthorization when it starts.
Implementations§
Source§impl ProxyConfig
impl ProxyConfig
pub fn new(instance: ProxyInstanceId, scope: HostScope) -> Self
Sourcepub fn dane_browser(instance: ProxyInstanceId) -> Self
pub fn dane_browser(instance: ProxyInstanceId) -> Self
Creates a Chromium-style generation which admits canonical HNS and ICANN DNS names to the native gateway while rejecting special-use, search, and IP-literal targets.
pub fn with_controls( instance: ProxyInstanceId, scope: HostScope, limits: ProxyLimits, timeouts: ProxyTimeouts, bind: LoopbackBind, ) -> Self
pub fn instance(&self) -> &ProxyInstanceId
pub fn hns_scope(&self) -> Option<&HostScope>
pub const fn limits(&self) -> ProxyLimits
pub const fn timeouts(&self) -> ProxyTimeouts
pub const fn bind(&self) -> LoopbackBind
pub const fn routing_mode(&self) -> ProxyRoutingMode
Trait Implementations§
Source§impl Clone for ProxyConfig
impl Clone for ProxyConfig
Source§impl Debug for ProxyConfig
impl Debug for ProxyConfig
impl Eq for ProxyConfig
Source§impl PartialEq for ProxyConfig
impl PartialEq for ProxyConfig
impl StructuralPartialEq for ProxyConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ProxyConfig
impl !UnwindSafe for ProxyConfig
impl Freeze for ProxyConfig
impl Send for ProxyConfig
impl Sync for ProxyConfig
impl Unpin for ProxyConfig
impl UnsafeUnpin for ProxyConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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