# Enum ethsync::NetworkError [−] [src]

    pub enum NetworkError {
        Auth,
        BadProtocol,
        Expired,
        PeerNotFound,
        Disconnect(DisconnectReason),
        Util(UtilError),
        Io(IoError),
        AddressParse(AddrParseError),
        AddressResolve(Option<Error>),
        StdIo(Error),
    }

Network error.

## Variants

`Auth`

Authentication error.

`BadProtocol`

Unrecognised protocol.

`Expired`

Message expired.

`PeerNotFound`

Peer not found.

`Disconnect(DisconnectReason)`

Peer is diconnected.

`Util(UtilError)`

Util error.

`Io(IoError)`

Socket IO error.

`AddressParse(AddrParseError)`

Error concerning the network address parsing subsystem.

`AddressResolve(Option<Error>)`

Error concerning the network address resolution subsystem.

`StdIo(Error)`

Error concerning the Rust standard library's IO subsystem.

## Trait Implementations

### `impl Debug for NetworkError`

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

Formats the value using the given formatter.

### `impl Display for NetworkError`

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

Formats the value using the given formatter.

### `impl From<DecoderError> for NetworkError`

#### `fn from(_err: DecoderError) -> NetworkError`

Performs the conversion.

### `impl From<Error> for NetworkError`

#### `fn from(err: Error) -> NetworkError`

Performs the conversion.

### `impl From<IoError> for NetworkError`

#### `fn from(err: IoError) -> NetworkError`

Performs the conversion.

### `impl From<UtilError> for NetworkError`

#### `fn from(err: UtilError) -> NetworkError`

Performs the conversion.

### `impl From<Error> for NetworkError`

#### `fn from(_err: Error) -> NetworkError`

Performs the conversion.

### `impl From<Error> for NetworkError`

#### `fn from(_err: Error) -> NetworkError`

Performs the conversion.

### `impl From<AddrParseError> for NetworkError`

#### `fn from(err: AddrParseError) -> NetworkError`

Performs the conversion.

# 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
+
  Collapse/expand all sections

## 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`)