pub struct EgressSpec {
pub url: String,
pub country: Option<CountryCode>,
pub kind: EgressKind,
pub name: Option<String>,
}Expand description
A configured egress (proxy) the client can route through.
Produced from CLI / config; the live client pairs each spec with its
own HTTP client (reqwest bakes the proxy in at build time).
Deserialises from the [[egress]] entries of a proxy-pool config
file.
Fields§
§url: StringProxy URL — http://, https://, socks5://, or socks5h://.
country: Option<CountryCode>Country this egress exits from, if known.
kind: EgressKindNetwork kind this egress exits from (defaults to datacenter).
name: Option<String>Operator-supplied identifier for this egress — used by the web UI’s per-scan egress subset selection (and by any other call site that needs to refer to a specific egress by stable name). Optional: an unnamed egress still participates in policy-based matching, it just can’t be selected by name.
Trait Implementations§
Source§impl Clone for EgressSpec
impl Clone for EgressSpec
Source§fn clone(&self) -> EgressSpec
fn clone(&self) -> EgressSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EgressSpec
impl Debug for EgressSpec
Source§impl<'de> Deserialize<'de> for EgressSpec
impl<'de> Deserialize<'de> for EgressSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EgressSpec
impl RefUnwindSafe for EgressSpec
impl Send for EgressSpec
impl Sync for EgressSpec
impl Unpin for EgressSpec
impl UnsafeUnpin for EgressSpec
impl UnwindSafe for EgressSpec
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