pub struct Address(/* private fields */);Expand description
Where a Client connects: an IP and port, or a host:port looked up
again on every connection attempt (the first connect and each reconnect).
let ip: Address = "127.0.0.1:4321".into();
let name: Address = "store.example.com:4321".into();
let socket: Address = std::net::SocketAddr::from(([127, 0, 0, 1], 4321)).into();Trait Implementations§
impl Eq for Address
Source§impl From<SocketAddr> for Address
impl From<SocketAddr> for Address
Source§fn from(addr: SocketAddr) -> Self
fn from(addr: SocketAddr) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Forget for Address
impl Freeze for Address
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<New, Old> UpcastFrom<Old> for Newwhere
New: From<Old>,
impl<New, Old> UpcastFrom<Old> for Newwhere
New: From<Old>,
Source§fn upcast_from(old: Old) -> New
fn upcast_from(old: Old) -> New
Converts the older event into this one.