Enum kitsune_p2p::ProxyConfig [−][src]
pub enum ProxyConfig {
RemoteProxyClient {
proxy_url: Url2,
},
LocalProxyServer {
proxy_accept_config: Option<ProxyAcceptConfig>,
},
}
Expand description
Proxy configuration options
Variants
We want to be hosted at a remote proxy location.
Fields of RemoteProxyClient
proxy_url: Url2
The remote proxy url to be hosted at
We want to be a proxy server for others. (We can also deny all proxy requests for something in-between).
Fields of LocalProxyServer
proxy_accept_config: Option<ProxyAcceptConfig>
Accept proxy request options Default: None = reject all proxy requests
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ProxyConfig
impl Send for ProxyConfig
impl Sync for ProxyConfig
impl Unpin for ProxyConfig
impl UnwindSafe for ProxyConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more