pub struct Router { /* private fields */ }Implementations§
Source§impl Router
impl Router
pub fn builder() -> Builder
pub async fn get_ip_state(&self) -> Result<RouterIp>
pub async fn get_node_id(&self) -> Result<NodeId>
pub async fn get_ip_from_node_id(&self, node_id: NodeId) -> Result<Ipv4Addr>
pub async fn get_node_id_from_ip(&self, ip: Ipv4Addr) -> Result<NodeId>
pub async fn get_peers(&self) -> Result<Vec<(NodeId, Option<Ipv4Addr>)>>
pub async fn close(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Router
impl RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl UnwindSafe for Router
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more