pub struct Proxy<F, H, D>{
pub listen_addr: SocketAddr,
pub shutdown_signal: F,
pub ca: CertificateAuthority,
pub upstream_proxy: Option<Proxy>,
pub mitm_filters: Vec<String>,
pub handler: H,
/* private fields */
}Fields§
§listen_addr: SocketAddrThe address to listen on.
shutdown_signal: FA future that once resolved will cause the proxy server to shut down.
ca: CertificateAuthorityThe certificate authority to use.
upstream_proxy: Option<Proxy>§mitm_filters: Vec<String>§handler: HImplementations§
Source§impl<F, H, D> Proxy<F, H, D>
impl<F, H, D> Proxy<F, H, D>
Sourcepub fn builder() -> ProxyBuilder<((), (), (), (), (), (), ()), F, H, D>
pub fn builder() -> ProxyBuilder<((), (), (), (), (), (), ()), F, H, D>
Create a builder for building Proxy.
On the builder, call .listen_addr(...), .shutdown_signal(...), .ca(...), .upstream_proxy(...), .mitm_filters(...), .handler(...), ._custom_contex_data(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of Proxy.
Auto Trait Implementations§
impl<F, H, D> !Freeze for Proxy<F, H, D>
impl<F, H, D> !RefUnwindSafe for Proxy<F, H, D>
impl<F, H, D> Send for Proxy<F, H, D>where
F: Send,
impl<F, H, D> Sync for Proxy<F, H, D>where
F: Sync,
impl<F, H, D> Unpin for Proxy<F, H, D>
impl<F, H, D> !UnwindSafe for Proxy<F, H, D>
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