pub struct Router {}
Expand description
router module function handling
Implementations
sourceimpl Router
impl Router
sourcepub fn cli(command: &str)
pub fn cli(command: &str)
CLI command interpretation
The CLI commands of router module are processed here
sourcefn request_routing_table()
fn request_routing_table()
create rpc request for routing table list
sourcefn request_neighbours_list()
fn request_neighbours_list()
create rpc request for neighbours list
sourcefn request_connections_list()
fn request_connections_list()
create rpc request for connections list
sourcefn send_message(message: Router)
fn send_message(message: Router)
Encode and send protobuf message
sourcepub fn rpc(data: Vec<u8>)
pub fn rpc(data: Vec<u8>)
Process received RPC message
Decodes received protobuf encoded binary RPC message of the router module.
sourcefn rpc_display_neighbours_list(neighbours_list: Vec<NeighboursEntry>)
fn rpc_display_neighbours_list(neighbours_list: Vec<NeighboursEntry>)
Display Neighbours list
sourcefn rpc_display_connections_list(connections_list: Vec<ConnectionsUserEntry>)
fn rpc_display_connections_list(connections_list: Vec<ConnectionsUserEntry>)
Display Connection per Module
Auto Trait Implementations
impl RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl UnwindSafe for Router
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