Struct fast_socks5::server::Socks5Server
source · pub struct Socks5Server<A: Authentication = DenyAuthentication> { /* private fields */ }
Expand description
Wrapper of TcpListener Useful if you don’t use any existing TcpListener’s streams.
Implementations§
source§impl<A: Authentication + Default> Socks5Server<A>
impl<A: Authentication + Default> Socks5Server<A>
pub async fn bind<S: AsyncToSocketAddrs>(addr: S) -> Result<Self>
source§impl<A: Authentication> Socks5Server<A>
impl<A: Authentication> Socks5Server<A>
sourcepub fn with_config<T: Authentication>(
self,
config: Config<T>
) -> Socks5Server<T>
pub fn with_config<T: Authentication>( self, config: Config<T> ) -> Socks5Server<T>
Set a custom config
Auto Trait Implementations§
impl<A = DenyAuthentication> !Freeze for Socks5Server<A>
impl<A> RefUnwindSafe for Socks5Server<A>where
A: RefUnwindSafe,
impl<A> Send for Socks5Server<A>
impl<A> Sync for Socks5Server<A>
impl<A> Unpin for Socks5Server<A>
impl<A> UnwindSafe for Socks5Server<A>where
A: RefUnwindSafe,
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