[][src]Struct exonum_node::SharedNodeState

pub struct SharedNodeState { /* fields omitted */ }

Shared part of the context, used to take some values from the Node. As there is no way to directly access the node state, this entity is regularly updated with information about the node and transfers this information to API.

Methods

impl SharedNodeState[src]

pub fn new(state_update_timeout: Milliseconds) -> Self[src]

Creates a new SharedNodeState instance.

pub fn incoming_connections(&self) -> Vec<ConnectInfo>[src]

Returns a list of connected addresses of other nodes.

pub fn outgoing_connections(&self) -> Vec<ConnectInfo>[src]

Returns a list of our connection sockets.

pub fn consensus_status(&self) -> bool[src]

Returns a boolean value which indicates whether the consensus is achieved.

pub fn is_enabled(&self) -> bool[src]

Returns a boolean value which indicates whether the node is enabled or not.

pub fn state_update_timeout(&self) -> Milliseconds[src]

Returns the value of the state_update_timeout.

pub fn tx_cache_size(&self) -> usize[src]

Returns the current size of transaction cache.

Trait Implementations

impl Clone for SharedNodeState[src]

impl Debug for SharedNodeState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,