pub struct HubRouter {
pub local_uid: u64,
pub tx_pump: Sender<(HubAddr, ToHubMsg)>,
pub routes: Arc<Mutex<Vec<HubRoute>>>,
pub router_thread: Option<JoinHandle<()>>,
}
Fields§
§local_uid: u64
§tx_pump: Sender<(HubAddr, ToHubMsg)>
§routes: Arc<Mutex<Vec<HubRoute>>>
§router_thread: Option<JoinHandle<()>>
Implementations§
Source§impl HubRouter
impl HubRouter
pub fn alloc_local_addr(&mut self) -> HubAddr
pub fn connect_direct( &mut self, route_type: HubRouteType, tx_write: Sender<FromHubMsg>, ) -> HubRouteSend
pub fn start_hub_router(hub_log: HubLog) -> HubRouter
Auto Trait Implementations§
impl Freeze for HubRouter
impl !RefUnwindSafe for HubRouter
impl Send for HubRouter
impl Sync for HubRouter
impl Unpin for HubRouter
impl !UnwindSafe for HubRouter
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