pub struct Address {
pub host: Option<String>,
pub port: u16,
pub protocol: Protocol,
pub https_proxy: Option<String>,
pub https_proxy_port: u16,
}Expand description
A single resolved network endpoint (one ADDRESS node).
Fields§
§host: Option<String>Host name or IP literal.
port: u16Listener port.
protocol: ProtocolTransport protocol.
https_proxy: Option<String>Optional forward proxy host.
https_proxy_port: u16Optional forward proxy port (0 = unset).
Trait Implementations§
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnsafeUnpin for Address
impl UnwindSafe for Address
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