[−][src]Enum libzmq::addr::Port
A port used by a socket address.
Example
use libzmq::addr::Port; use std::convert::TryInto; let port: Port = "*".try_into()?; assert!(port.is_unspecified());
Variants
Specified(u16)
An specified port number.
Unspecified
A system specified ephemeral port.
Methods
impl Port
[src]
pub fn is_specified(self) -> bool
[src]
pub fn is_unspecified(self) -> bool
[src]
Trait Implementations
impl PartialEq<Port> for Port
[src]
impl Clone for Port
[src]
fn clone(&self) -> Port
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Port
[src]
impl Copy for Port
[src]
impl Debug for Port
[src]
impl Display for Port
[src]
impl FromStr for Port
[src]
type Err = AddrParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, AddrParseError>
[src]
impl TryFrom<String> for Port
[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 Port
[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 Port
[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 Hash for Port
[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 Serialize for Port
[src]
impl<'de> Deserialize<'de> for Port
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,