pub struct SocksInboundOpt {
pub listen_addr: SocketAddr,
pub public_addr: Option<IpAddr>,
pub auth: AuthMode,
pub skip_auth: bool,
pub allow_udp: bool,
}Fields§
§listen_addr: SocketAddrBind on address address. eg. 127.0.0.1:1080
public_addr: Option<IpAddr>Our external IP address to be sent in reply packets (required for UDP)
auth: AuthModeChoose authentication type
skip_auth: boolDon’t perform the auth handshake, send directly the command request
allow_udp: boolAllow UDP proxying, requires public-addr to be set
Auto Trait Implementations§
impl Freeze for SocksInboundOpt
impl RefUnwindSafe for SocksInboundOpt
impl Send for SocksInboundOpt
impl Sync for SocksInboundOpt
impl Unpin for SocksInboundOpt
impl UnsafeUnpin for SocksInboundOpt
impl UnwindSafe for SocksInboundOpt
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