pub struct MdnsDiscovery { /* private fields */ }Expand description
mDNS service discovery for validator peer discovery
Implementations§
Source§impl MdnsDiscovery
impl MdnsDiscovery
Sourcepub fn service_type(&self) -> &str
pub fn service_type(&self) -> &str
Get the mDNS service type
Sourcepub fn discover_peers(
&self,
timeout_secs: u64,
) -> Result<Vec<PeerDiscovery>, Box<dyn Error>>
pub fn discover_peers( &self, timeout_secs: u64, ) -> Result<Vec<PeerDiscovery>, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for MdnsDiscovery
impl RefUnwindSafe for MdnsDiscovery
impl Send for MdnsDiscovery
impl Sync for MdnsDiscovery
impl Unpin for MdnsDiscovery
impl UnsafeUnpin for MdnsDiscovery
impl UnwindSafe for MdnsDiscovery
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