pub enum SingBoxOutbound {
Shadowsocks {
tag: Option<String>,
server: String,
server_port: u16,
method: String,
password: String,
},
Trojan {
tag: Option<String>,
server: String,
server_port: u16,
password: String,
tls: Option<SingBoxTls>,
},
Selector {
tag: Option<String>,
outbounds: Vec<String>,
},
Urltest {
tag: Option<String>,
outbounds: Vec<String>,
url: String,
interval: Option<String>,
tolerance: Option<u32>,
},
Direct {
tag: Option<String>,
},
Block {
tag: Option<String>,
},
}Expand description
Sing-Box outbound configuration
Variants§
Trait Implementations§
Source§impl Clone for SingBoxOutbound
impl Clone for SingBoxOutbound
Source§fn clone(&self) -> SingBoxOutbound
fn clone(&self) -> SingBoxOutbound
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 SingBoxOutbound
impl Debug for SingBoxOutbound
Source§impl<'de> Deserialize<'de> for SingBoxOutbound
impl<'de> Deserialize<'de> for SingBoxOutbound
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
Source§impl From<SingBoxOutbound> for Node
impl From<SingBoxOutbound> for Node
Source§fn from(outbound: SingBoxOutbound) -> Self
fn from(outbound: SingBoxOutbound) -> Self
Converts to this type from the input type.
Source§impl Serialize for SingBoxOutbound
impl Serialize for SingBoxOutbound
Auto Trait Implementations§
impl Freeze for SingBoxOutbound
impl RefUnwindSafe for SingBoxOutbound
impl Send for SingBoxOutbound
impl Sync for SingBoxOutbound
impl Unpin for SingBoxOutbound
impl UnwindSafe for SingBoxOutbound
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