[−][src]Struct exonum_node::SharedNodeState
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]
fn clone(&self) -> SharedNodeState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SharedNodeState
[src]
Auto Trait Implementations
impl RefUnwindSafe for SharedNodeState
impl Send for SharedNodeState
impl Sync for SharedNodeState
impl Unpin for SharedNodeState
impl UnwindSafe for SharedNodeState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,