# Enum byteorder::Error [−] [src]

    pub enum Error {
        UnexpectedEOF,
        Io(Error),
    }

An error type for reading bytes.

This is a thin wrapper over the standard `io::Error` type. Namely, it adds one additional error case: an unexpected EOF.

Note that this error is also used for the `write` methods to keep things consistent.

## Variants

`UnexpectedEOF` | An unexpected EOF. This occurs when a call to the underlying reader returns `0` bytes, but more bytes are required to decode a meaningful value. |
`Io` | Any underlying IO error that occurs while reading bytes. |

## Trait Implementations

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

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

### `impl Display for Error`

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

### `impl Error for Error`

#### `fn description(&self) -> &str`

#### `fn cause(&self) -> Option<&Error>`

### Derived Implementations

### `impl Debug for Error`

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

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