pub struct ShadowsocksConfig {
pub method: String,
pub password: String,
pub address: String,
pub port: u16,
pub tag: Option<String>,
pub plugin: Option<String>,
}Expand description
Shadowsocks configuration structure
Fields§
§method: StringEncryption method (aes-256-gcm, chacha20-poly1305, etc.)
password: StringPassword
address: StringServer address
port: u16Server port
tag: Option<String>Tag/remark
plugin: Option<String>Plugin information
Trait Implementations§
Source§impl Clone for ShadowsocksConfig
impl Clone for ShadowsocksConfig
Source§fn clone(&self) -> ShadowsocksConfig
fn clone(&self) -> ShadowsocksConfig
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 ShadowsocksConfig
impl Debug for ShadowsocksConfig
Source§impl<'de> Deserialize<'de> for ShadowsocksConfig
impl<'de> Deserialize<'de> for ShadowsocksConfig
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 PartialEq for ShadowsocksConfig
impl PartialEq for ShadowsocksConfig
Source§impl Serialize for ShadowsocksConfig
impl Serialize for ShadowsocksConfig
impl Eq for ShadowsocksConfig
impl StructuralPartialEq for ShadowsocksConfig
Auto Trait Implementations§
impl Freeze for ShadowsocksConfig
impl RefUnwindSafe for ShadowsocksConfig
impl Send for ShadowsocksConfig
impl Sync for ShadowsocksConfig
impl Unpin for ShadowsocksConfig
impl UnsafeUnpin for ShadowsocksConfig
impl UnwindSafe for ShadowsocksConfig
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