pub struct Socks5Proxy { /* private fields */ }Expand description
SOCKS5 proxy server.
Implementations§
Source§impl Socks5Proxy
impl Socks5Proxy
Sourcepub async fn new(filter: DomainFilter) -> Result<Self, SandboxError>
pub async fn new(filter: DomainFilter) -> Result<Self, SandboxError>
Create a new SOCKS5 proxy server.
Sourcepub fn start(&mut self) -> Result<(), SandboxError>
pub fn start(&mut self) -> Result<(), SandboxError>
Start the proxy server.
Auto Trait Implementations§
impl !Freeze for Socks5Proxy
impl !RefUnwindSafe for Socks5Proxy
impl Send for Socks5Proxy
impl Sync for Socks5Proxy
impl Unpin for Socks5Proxy
impl !UnwindSafe for Socks5Proxy
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