Struct noxious_client::ProxyConfig[][src]

pub struct ProxyConfig {
    pub name: String,
    pub listen: String,
    pub upstream: String,
    pub enabled: bool,
    pub rand_seed: Option<u64>,
}

The immutable configuration for a proxy

Fields

name: String

An arbitrary name

listen: String

The host name and the port the proxy listens on, like 127.0.0.1:5431

upstream: String

The host name and the port the proxy connects to, like 127.0.0:5432

enabled: bool

The client can set the enabled field to false to stop this proxy. Proxies are enabled by default

rand_seed: Option<u64>

A random seed. Not exposed in the API

Implementations

impl ProxyConfig[src]

pub fn validate(&self) -> Result<(), ProxyValidateError>[src]

Validate the proxy config, return ProxyValidateError if invalid

Trait Implementations

impl Clone for ProxyConfig[src]

impl Debug for ProxyConfig[src]

impl<'de> Deserialize<'de> for ProxyConfig[src]

impl PartialEq<ProxyConfig> for ProxyConfig[src]

impl Serialize for ProxyConfig[src]

impl StructuralPartialEq for ProxyConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,