Trait ethsync::ManageNetwork [] [src]

pub trait ManageNetwork: Send + Sync {
    fn accept_unreserved_peers(&self);
    fn deny_unreserved_peers(&self);
    fn remove_reserved_peer(&self, peer: String) -> Result<(), String>;
    fn add_reserved_peer(&self, peer: String) -> Result<(), String>;
    fn start_network(&self);
    fn stop_network(&self);
    fn network_config(&self) -> NetworkConfiguration;
}

Trait for managing network

Required Methods

Set to allow unreserved peers to connect

Set to deny unreserved peers to connect

Remove reservation for the peer

Add reserved peer

Start network

Stop network

Query the current configuration of the network

Trait Implementations

impl IpcConfig for ManageNetwork
[src]

Current service api version Should be increased if any of the methods changes signature Read more

Current ipc protocol version Should be increased only if signature of system methods changes Read more

Default handshake requires exact versions match

Implementors