pub struct HubClient {
pub own_addr: HubAddr,
pub server_addr: HubAddr,
pub uid_alloc: u64,
pub tx_read: Sender<FromHubMsg>,
pub rx_read: Option<Receiver<FromHubMsg>>,
pub tx_write: Sender<ToHubMsg>,
/* private fields */
}Fields§
§own_addr: HubAddr§server_addr: HubAddr§uid_alloc: u64§tx_read: Sender<FromHubMsg>§rx_read: Option<Receiver<FromHubMsg>>§tx_write: Sender<ToHubMsg>Implementations§
Source§impl HubClient
impl HubClient
pub fn connect_to_server( digest: Digest, server_address: SocketAddr, hub_log: HubLog, ) -> Result<HubClient, HubError>
pub fn wait_for_announce(digest: Digest) -> Result<SocketAddr, Error>
pub fn wait_for_announce_on( digest: Digest, announce_address: SocketAddr, ) -> Result<SocketAddr, Error>
pub fn join_threads(&mut self)
pub fn alloc_uid(&mut self) -> HubUid
pub fn get_route_send(&self) -> HubRouteSend
pub fn get_route_send_in_place(&self, route_send: &HubRouteSend)
Auto Trait Implementations§
impl Freeze for HubClient
impl !RefUnwindSafe for HubClient
impl Send for HubClient
impl !Sync for HubClient
impl Unpin for HubClient
impl UnsafeUnpin for HubClient
impl !UnwindSafe for HubClient
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