[−][src]Struct makepad_hub::HubClient
Fields
own_addr: HubAddr
server_addr: HubAddr
uid_alloc: u64
tx_read: Sender<FromHubMsg>
rx_read: Option<Receiver<FromHubMsg>>
tx_write: Sender<ToHubMsg>
Methods
impl HubClient
[src]
pub fn connect_to_server(
digest: Digest,
server_address: SocketAddr,
hub_log: HubLog
) -> Result<HubClient, HubError>
[src]
digest: Digest,
server_address: SocketAddr,
hub_log: HubLog
) -> Result<HubClient, HubError>
pub fn wait_for_announce(digest: Digest) -> Result<SocketAddr, Error>
[src]
pub fn wait_for_announce_on(
digest: Digest,
announce_address: SocketAddr
) -> Result<SocketAddr, Error>
[src]
digest: Digest,
announce_address: SocketAddr
) -> Result<SocketAddr, Error>
pub fn join_threads(&mut self)
[src]
pub fn alloc_uid(&mut self) -> HubUid
[src]
pub fn get_route_send(&self) -> HubRouteSend
[src]
pub fn get_route_send_in_place(&self, route_send: &HubRouteSend)
[src]
Auto Trait Implementations
impl Send for HubClient
impl !Sync for HubClient
impl Unpin for HubClient
impl !UnwindSafe for HubClient
impl !RefUnwindSafe for HubClient
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,