pub struct BootstrapCacheLookup { /* private fields */ }Expand description
AddressLookup impl backed by a BootstrapCache.
Yields each cached address for the peer (if any), then terminates.
Implementations§
Source§impl BootstrapCacheLookup
impl BootstrapCacheLookup
Sourcepub fn new(cache: Arc<BootstrapCache>) -> Self
pub fn new(cache: Arc<BootstrapCache>) -> Self
Wrap an existing bootstrap cache.
Trait Implementations§
Source§impl AddressLookup for BootstrapCacheLookup
impl AddressLookup for BootstrapCacheLookup
Source§impl Clone for BootstrapCacheLookup
impl Clone for BootstrapCacheLookup
Source§fn clone(&self) -> BootstrapCacheLookup
fn clone(&self) -> BootstrapCacheLookup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BootstrapCacheLookup
impl !RefUnwindSafe for BootstrapCacheLookup
impl Send for BootstrapCacheLookup
impl Sync for BootstrapCacheLookup
impl Unpin for BootstrapCacheLookup
impl UnsafeUnpin for BootstrapCacheLookup
impl !UnwindSafe for BootstrapCacheLookup
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