pub struct DiscoveryClient;Expand description
Controller-side discovery helper.
Implementations§
Source§impl DiscoveryClient
impl DiscoveryClient
pub async fn broadcast( socket: &UdpSocket, broadcast: SocketAddr, requested: Vec<String>, ) -> Result<Vec<u8>, DiscoveryError>
pub async fn recv_reply( socket: &UdpSocket, expected_nonce: &[u8], verifier: &VerifyingKey, ) -> Result<DiscoveryReply, DiscoveryError>
Auto Trait Implementations§
impl Freeze for DiscoveryClient
impl RefUnwindSafe for DiscoveryClient
impl Send for DiscoveryClient
impl Sync for DiscoveryClient
impl Unpin for DiscoveryClient
impl UnwindSafe for DiscoveryClient
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