pub struct ConfigurableBootstrapDiscovery { /* private fields */ }
Expand description
Enhanced bootstrap discovery with configuration
Implementations§
Source§impl ConfigurableBootstrapDiscovery
impl ConfigurableBootstrapDiscovery
Sourcepub fn new(config: BootstrapConfig) -> Self
pub fn new(config: BootstrapConfig) -> Self
Create a new configurable bootstrap discovery
Sourcepub async fn discover(&self) -> Result<Vec<Multiaddr>>
pub async fn discover(&self) -> Result<Vec<Multiaddr>>
Discover bootstrap nodes with configuration options
Sourcepub fn resolve_three_words(&self, three_words: &str) -> Result<Multiaddr>
pub fn resolve_three_words(&self, three_words: &str) -> Result<Multiaddr>
Resolve three-word address if enabled
Auto Trait Implementations§
impl Freeze for ConfigurableBootstrapDiscovery
impl RefUnwindSafe for ConfigurableBootstrapDiscovery
impl Send for ConfigurableBootstrapDiscovery
impl Sync for ConfigurableBootstrapDiscovery
impl Unpin for ConfigurableBootstrapDiscovery
impl UnwindSafe for ConfigurableBootstrapDiscovery
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