# Struct ethcore_network::NetworkStats [−] [src]

    pub struct NetworkStats { /* fields omitted */ }

Network statistics structure

## Methods

### `impl NetworkStats`
[src]

#### `fn inc_recv(&self, size: usize)`

Increase bytes received.

#### `fn inc_send(&self, size: usize)`

Increase bytes sent.

#### `fn inc_sessions(&self)`

Increase number of sessions.

#### `fn send(&self) -> usize`

Get bytes sent.

#### `fn recv(&self) -> usize`

Get bytes received.

#### `fn sessions(&self) -> usize`

Get total number of sessions created.

#### `fn new() -> NetworkStats`

Create a new empty instance.

## Trait Implementations

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

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

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

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

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

Formats the value using the given formatter.

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