Enum nix::sys::socket::SockAddr
[−]
[src]
pub enum SockAddr { Inet(InetAddr), Unix(UnixAddr), }
Represents a socket address
Variants
Inet | |
Unix |
pub enum SockAddr { Inet(InetAddr), Unix(UnixAddr), }
Represents a socket address
Inet | |
Unix |
impl SockAddr
fn new_inet(addr: InetAddr) -> SockAddr
fn new_unix<P: ?Sized + NixPath>(path: &P) -> Result<SockAddr>
fn family(&self) -> AddressFamily
fn to_str(&self) -> String
unsafe fn as_ffi_pair(&self) -> (&sockaddr, socklen_t)
impl PartialEq for SockAddr
impl Eq for SockAddr
impl Hash for SockAddr
fn hash<H: Hasher>(&self, s: &mut H)
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
impl Clone for SockAddr
fn clone(&self) -> SockAddr
fn clone_from(&mut self, source: &Self)
impl Display for SockAddr
impl Copy for SockAddr
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
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)