[][src]Struct ttproxy::cfg::Cfg

pub struct Cfg {
    pub proxy_serv_at: String,
    pub server_addr_set: Vec<SocketAddr>,
    pub server_set: Vec<String>,
}

配置信息

Fields

proxy_serv_at: String

Proxy 服务地址, eg: '0.0.0.0:19527'

server_addr_set: Vec<SocketAddr>

Server 服务地址, SocketAddr 格式

server_set: Vec<String>

Server 服务地址, 原始格式 eg: '[ "127.0.0.1:9527", "10.10.10.101:9527" ]'

Trait Implementations

impl Debug for Cfg[src]

Auto Trait Implementations

impl RefUnwindSafe for Cfg

impl Send for Cfg

impl Sync for Cfg

impl Unpin for Cfg

impl UnwindSafe for Cfg

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> From<T> for T[src]

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

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.