Trait radn::rcore::ResolverMap

source ·
pub trait ResolverMap<'a, Ctx: Context<'a>>: Resolver<'a, Ctx> {
    // Provided method
    fn resolve_map<T: 'a + Send>(
        self: Arc<Self>,
        address: Address,
        f: impl 'a + Send + FnOnce(HashResolutionResult<'a, Ctx>) -> T
    ) -> Wrapped<'a, Ctx, T> { ... }
}
Expand description

Provided Methods§

source

fn resolve_map<T: 'a + Send>( self: Arc<Self>, address: Address, f: impl 'a + Send + FnOnce(HashResolutionResult<'a, Ctx>) -> T ) -> Wrapped<'a, Ctx, T>

Resolve the Address, then map the HashResolutionResult.

Implementors§

source§

impl<'a, Ctx: Context<'a>, R: ?Sized + Resolver<'a, Ctx>> ResolverMap<'a, Ctx> for R