Trait exonum::node::SystemStateProvider
[−]
[src]
pub trait SystemStateProvider: 'static + Debug { fn listen_address(&self) -> SocketAddr; fn current_time(&self) -> SystemTime; }
A helper trait that provides the node with information about the state of the system such as current time or listen address.
Required Methods
fn listen_address(&self) -> SocketAddr
Returns the current address that the node listens on.
fn current_time(&self) -> SystemTime
Return the current system time.
Implementors
impl SystemStateProvider for DefaultSystemState