Struct exonum::blockchain::SharedNodeState [] [src]

pub struct SharedNodeState {
    pub state_update_timeout: Milliseconds,
    // some fields omitted
}

Shared part of the context, used to take some values from the Nodes State should be used to take some metrics.

Fields

Timeout to update api state.

Methods

impl SharedNodeState
[src]

[src]

Creates new SharedNodeState

[src]

Return list of connected sockets

[src]

Return list of our connection sockets

[src]

Return reconnects list

[src]

Return peers info list

[src]

Update internal state, from Node State`

[src]

Returns value of the state_update_timeout.

[src]

add incomming connection into state

[src]

add outgoing connection into state

[src]

remove incomming connection from state

[src]

remove outgoing connection from state

[src]

Add reconect timeout

[src]

Removes reconect timeout and returns the previous value.

Trait Implementations

impl Clone for SharedNodeState
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SharedNodeState
[src]

[src]

Formats the value using the given formatter.