Struct qaul_cli::connections::Connections
source · [−]pub struct Connections {}
Expand description
connections function handling
Implementations
sourceimpl Connections
impl Connections
sourcepub fn cli(command: &str)
pub fn cli(command: &str)
CLI command interpretation
The CLI commands of users are processed here
sourcefn internet_nodes_list()
fn internet_nodes_list()
send an rpc request for internet peering nodes list
sourcefn internet_node_add(address: String)
fn internet_node_add(address: String)
send an RPC message to add a new internet peer node connection
sourcefn internet_node_remove(address: String)
fn internet_node_remove(address: String)
Send an rpc message to remove a specific internet peer node connection
The nodes are specified by their libp2p multiaddress
sourcefn internet_node_activate(address: String)
fn internet_node_activate(address: String)
Send an rpc message to activate a specific internet peer node connection
The nodes are specified by their libp2p multiaddress
sourcefn internet_node_deactivate(address: String)
fn internet_node_deactivate(address: String)
Send an rpc message to deactivate a specific internet peer node connection
The nodes are specified by their libp2p multiaddress
sourcefn send_message(message: Connections)
fn send_message(message: Connections)
Encode and send a protobuf connections message to RPC
Auto Trait Implementations
impl RefUnwindSafe for Connections
impl Send for Connections
impl Sync for Connections
impl Unpin for Connections
impl UnwindSafe for Connections
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more