pub struct SharedRouterTable { /* private fields */ }Implementations§
pub fn new(address: PeerId) -> Self
pub fn local_id(&self) -> PeerId
pub fn create_sync(&self, dest: &PeerId) -> RouterTableSync
pub fn apply_sync(&self, conn: ConnectionId, sync: RouterTableSync)
pub fn set_direct(&self, conn: ConnectionId, to: PeerId, ttl_ms: u16)
pub fn del_direct(&self, conn: &ConnectionId)
pub fn action(&self, dest: &PeerId) -> Option<RouteAction>
pub fn next_remote(&self, dest: &PeerId) -> Option<(ConnectionId, PathMetric)>
pub fn neighbours(&self) -> Vec<(ConnectionId, PeerId, u16)>
Trait Implementations§
Source§fn clone(&self) -> SharedRouterTable
fn clone(&self) -> SharedRouterTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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