pub struct OutboundConfig {
pub outbound_type: String,
pub addr: Option<String>,
pub password: Option<String>,
pub sni: Option<String>,
pub bind: Option<String>,
}Expand description
Named outbound connector configuration.
Fields§
§outbound_type: StringOutbound type: “trojan”, “direct”, or “reject”.
addr: Option<String>Target address (required for trojan).
password: Option<String>Password (for trojan outbound).
sni: Option<String>SNI (for trojan outbound).
bind: Option<String>Bind to specific local IP (for direct outbound).
Trait Implementations§
Source§impl Clone for OutboundConfig
impl Clone for OutboundConfig
Source§fn clone(&self) -> OutboundConfig
fn clone(&self) -> OutboundConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 OutboundConfig
impl Debug for OutboundConfig
Source§impl<'de> Deserialize<'de> for OutboundConfig
impl<'de> Deserialize<'de> for OutboundConfig
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 OutboundConfig
impl RefUnwindSafe for OutboundConfig
impl Send for OutboundConfig
impl Sync for OutboundConfig
impl Unpin for OutboundConfig
impl UnsafeUnpin for OutboundConfig
impl UnwindSafe for OutboundConfig
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