# Struct ethcore_light::net::Announcement [−] [src]

    pub struct Announcement {
        pub head_hash: H256,
        pub head_num: u64,
        pub head_td: U256,
        pub reorg_depth: u64,
        pub serve_headers: bool,
        pub serve_state_since: Option<u64>,
        pub serve_chain_since: Option<u64>,
        pub tx_relay: bool,
    }

An announcement of new chain head or capabilities made by a peer.

## Fields

`head_hash: H256`

Hash of the best block.

`head_num: u64`

Number of the best block.

`head_td: U256`

Head total difficulty

`reorg_depth: u64`

reorg depth to common ancestor of last announced head.

`serve_headers: bool`

optional new header-serving capability. false means "no change"

`serve_state_since: Option<u64>`

optional new state-serving capability

`serve_chain_since: Option<u64>`

optional new chain-serving capability

`tx_relay: bool`

optional new transaction-relay capability. false means "no change"

## Trait Implementations

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

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

Formats the value using the given formatter.

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

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

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 PartialEq for Announcement`
[src]

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

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

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

This method tests for `!=`.

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

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