pub struct SocketAddr { ip: IpAddr, port: Port, }
impl Eq for SocketAddr
fn eq(&self, __arg_0: &SocketAddr) -> bool
fn ne(&self, __arg_0: &SocketAddr) -> bool
impl TotalEq for SocketAddr
fn equals(&self, __arg_0: &SocketAddr) -> bool
impl Clone for SocketAddr
fn clone(&self) -> SocketAddr
Returns a copy of the value. The contents of owned pointers are copied to maintain uniqueness, while the contents of managed pointers are not copied.
impl ToStr for SocketAddr
fn to_str(&self) -> ~str
Converts the value of self
to an owned string
impl FromStr for SocketAddr
fn from_str(s: &str) -> Option<SocketAddr>
Parses a string s
to return an optional value of this type. If the
string is ill-formatted, the None is returned.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).