[−][src]Struct libzmq::addr::SocketAddr
A socket address with an Interface
and a Port
.
Example
use libzmq::{prelude::TryInto, addr::SocketAddr}; let host: SocketAddr = "127.0.0.1:3000".try_into()?;
Methods
impl SocketAddr
[src]
pub fn new(interface: Interface, port: Port) -> Self
[src]
pub fn interface(&self) -> &Interface
[src]
pub fn port(&self) -> Port
[src]
Trait Implementations
impl PartialEq<SocketAddr> for SocketAddr
[src]
fn eq(&self, other: &SocketAddr) -> bool
[src]
fn ne(&self, other: &SocketAddr) -> bool
[src]
impl Eq for SocketAddr
[src]
impl From<SocketAddr> for SocketAddr
[src]
fn from(addr: SocketAddr) -> Self
[src]
impl<'a> From<&'a SocketAddr> for SocketAddr
[src]
fn from(addr: &'a SocketAddr) -> Self
[src]
impl From<SocketAddr> for SrcAddr
[src]
fn from(addr: SocketAddr) -> Self
[src]
impl<'a> From<&'a SocketAddr> for SrcAddr
[src]
fn from(addr: &'a SocketAddr) -> Self
[src]
impl From<SocketAddr> for TcpAddr
[src]
fn from(host: SocketAddr) -> Self
[src]
impl From<SocketAddr> for UdpAddr
[src]
fn from(host: SocketAddr) -> Self
[src]
impl From<SocketAddr> for PgmAddr
[src]
fn from(host: SocketAddr) -> Self
[src]
impl From<SocketAddr> for EpgmAddr
[src]
fn from(host: SocketAddr) -> Self
[src]
impl Clone for SocketAddr
[src]
fn clone(&self) -> SocketAddr
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for SocketAddr
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for SocketAddr
[src]
impl Display for SocketAddr
[src]
impl TryFrom<String> for SocketAddr
[src]
type Error = AddrParseError
The type returned in the event of a conversion error.
fn try_from(s: String) -> Result<Self, AddrParseError>
[src]
impl<'a> TryFrom<&'a String> for SocketAddr
[src]
type Error = AddrParseError
The type returned in the event of a conversion error.
fn try_from(s: &'a String) -> Result<Self, AddrParseError>
[src]
impl<'a> TryFrom<&'a str> for SocketAddr
[src]
type Error = AddrParseError
The type returned in the event of a conversion error.
fn try_from(s: &'a str) -> Result<Self, AddrParseError>
[src]
impl FromStr for SocketAddr
[src]
type Err = AddrParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, AddrParseError>
[src]
impl Serialize for SocketAddr
[src]
impl<'de> Deserialize<'de> for SocketAddr
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for SocketAddr
impl Unpin for SocketAddr
impl Sync for SocketAddr
impl UnwindSafe for SocketAddr
impl RefUnwindSafe for SocketAddr
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,