pub struct ClientState {
pub hash_hex: String,
pub remote_addr: String,
pub tls_connector: TlsConnector,
pub sni: ServerName<'static>,
pub tcp_config: TcpConfig,
pub tls_handshake_timeout: Duration,
pub dns_resolver: DnsResolver,
}Expand description
Shared client state for establishing outbound connections.
Fields§
§hash_hex: StringSHA-224 hex hash of the password (56 bytes).
remote_addr: StringRemote trojan server address string (host:port).
tls_connector: TlsConnectorTLS connector.
sni: ServerName<'static>TLS SNI server name.
tcp_config: TcpConfigTCP socket options.
tls_handshake_timeout: DurationTLS handshake timeout.
dns_resolver: DnsResolverDNS resolver.
Implementations§
Source§impl ClientState
impl ClientState
Auto Trait Implementations§
impl Freeze for ClientState
impl !RefUnwindSafe for ClientState
impl Send for ClientState
impl Sync for ClientState
impl Unpin for ClientState
impl UnsafeUnpin for ClientState
impl !UnwindSafe for ClientState
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