#[repr(transparent)]pub struct Port(pub u16);Expand description
Used in conjunction with NetworkTarget::Domain and in adjacency to SOCKS5 connect operations
§Example
let mut conn = crate::socks5::connect(
Context {
proxy: "194.113.119.68:6742".parse().unwrap(),
destination: NetworkTarget::Domain("api.ipify.org".into(), Port(80)),
},
Auth::UserPass("vcilvnba".into(), "vi14viqvvrr7".into()),
)
.await?;Tuple Fields§
§0: u16Trait Implementations§
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnsafeUnpin for Port
impl UnwindSafe for Port
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