pub struct Port(pub u16);Available on crate feature
client only.Expand description
The port for DnsResolver, and only used for DnsResolver.
When resolving domain name, the response is only an IP address without port, but to access the destination server, the port is needed.
For setting port to DnsResolver, you can insert it into Endpoint of callee in
ClientContext, the resolver will apply it.
Tuple Fields§
§0: u16Trait Implementations§
impl Copy for Port
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin 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