# Enum ethcore::client::Mode [−] [src]

    pub enum Mode {
        Active,
        Passive(Duration, Duration),
        Dark(Duration),
        Off,
    }

Operating mode for the client.

## Variants

`Active`

Always on.

`Passive(Duration, Duration)`

Goes offline after RLP is inactive for some (given) time, but comes back online after a while of inactivity.

`Dark(Duration)`

Goes offline after RLP is inactive for some (given) time and stays inactive.

`Off`

Always off.

## Trait Implementations

### `impl Debug for Mode`
[src]

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

Formats the value using the given formatter.

### `impl Eq for Mode`
[src]

### `impl PartialEq for Mode`
[src]

#### `fn eq(&self, __arg_0: &Mode) -> bool`

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, __arg_0: &Mode) -> bool`

This method tests for `!=`.

### `impl Clone for Mode`
[src]

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

Returns a copy of the value. Read more

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

Performs copy-assignment from `source`. Read more

### `impl Default for Mode`
[src]

#### `fn default() -> Self`

Returns the "default value" for a type. Read more

### `impl Display for Mode`
[src]

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

Formats the value using the given formatter.

### `impl From<Mode> for ClientMode`
[src]

#### `fn from(mode: Mode) -> Self`

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