pub struct Socks5StreamBuilder {
pub address: SocketAddr,
}Fields§
§address: SocketAddrImplementations§
Source§impl Socks5StreamBuilder
impl Socks5StreamBuilder
pub fn new(address: SocketAddr) -> Self
pub async fn connect<Stream: AsyncRead + AsyncWrite + Unpin>( socket: Stream, address: &Socks5Addr, port: u16, ) -> Result<Stream, Socks5Error>
Trait Implementations§
Source§impl Clone for Socks5StreamBuilder
impl Clone for Socks5StreamBuilder
Source§fn clone(&self) -> Socks5StreamBuilder
fn clone(&self) -> Socks5StreamBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for Socks5StreamBuilder
impl RefUnwindSafe for Socks5StreamBuilder
impl Send for Socks5StreamBuilder
impl Sync for Socks5StreamBuilder
impl Unpin for Socks5StreamBuilder
impl UnwindSafe for Socks5StreamBuilder
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