pub struct EgressProxy {
pub http: SocketAddr,
pub socks: Option<SocketAddr>,
pub no_proxy: Vec<String>,
}Expand description
sandbox.network.proxy: the proxy a sandboxed command’s traffic must go
through. Addresses, never names, so that nothing has to be resolved to
write the rule or the variables.
Fields§
§http: SocketAddrAn HTTP proxy that takes CONNECT.
socks: Option<SocketAddr>A SOCKS5 proxy, for ALL_PROXY.
no_proxy: Vec<String>NO_PROXY. Empty overrides whatever the command would inherit, so
even localhost goes through the proxy.
Implementations§
Source§impl EgressProxy
impl EgressProxy
pub fn addresses(&self) -> impl Iterator<Item = SocketAddr> + '_
Trait Implementations§
Source§impl Clone for EgressProxy
impl Clone for EgressProxy
Source§impl Debug for EgressProxy
impl Debug for EgressProxy
impl Eq for EgressProxy
Source§impl PartialEq for EgressProxy
impl PartialEq for EgressProxy
impl StructuralPartialEq for EgressProxy
Auto Trait Implementations§
impl Forget for EgressProxy
impl Freeze for EgressProxy
impl Move for EgressProxy
impl RefUnwindSafe for EgressProxy
impl Send for EgressProxy
impl Sync for EgressProxy
impl Unpin for EgressProxy
impl UnsafeUnpin for EgressProxy
impl UnwindSafe for EgressProxy
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