# Struct bitflags::__core::os::ext::net::SocketAddr [−] [src]

    pub struct SocketAddr {
        // some fields omitted
    }

Unstable (`unix_socket`)

: newly added

An address associated with a Unix socket.

## Methods

### `impl SocketAddr`

#### `fn is_unnamed(&self) -> bool`

Unstable (`unix_socket`)

: newly added

Returns true iff the address is unnamed.

#### `fn as_pathname(&self) -> Option<&Path>`

Unstable (`unix_socket`)

: newly added

Returns the contents of this address if it is a `pathname` address.

## Trait Implementations

### `impl Debug for SocketAddr`

#### `fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>`

Unstable (`unix_socket`)

: newly added

### Derived Implementations

### `impl Clone for SocketAddr`

#### `fn clone(&self) -> SocketAddr`

Unstable (`unix_socket`)

: newly added

#### `fn clone_from(&mut self, source: &Self)`1.0.0

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

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`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)