Struct url::HostAndPort [−][src]
Expand description
This mostly exists because coherence rules don’t allow us to implement
ToSocketAddrs for (Host<S>, u16).
Fields
host: Host<S>port: u16Implementations
Return a copy of self that owns an allocated String but does not borrow an &Url.
Trait Implementations
type Iter = SocketAddrs
type Iter = SocketAddrs
Returned iterator over socket addresses which this type may correspond to. Read more
Converts this object to an iterator of resolved SocketAddrs. Read more
Auto Trait Implementations
impl<S> RefUnwindSafe for HostAndPort<S> where
S: RefUnwindSafe,
impl<S> Send for HostAndPort<S> where
S: Send,
impl<S> Sync for HostAndPort<S> where
S: Sync,
impl<S> Unpin for HostAndPort<S> where
S: Unpin,
impl<S> UnwindSafe for HostAndPort<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more