Trait PrefixLookup

Source
pub trait PrefixLookup {
    // Required method
    fn vertexes_by_hex_prefix<'life0, 'life1, 'async_trait>(
        &'life0 self,
        hex_prefix: &'life1 [u8],
        limit: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<VertexName>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Lookup vertexes by prefixes.

Required Methods§

Source

fn vertexes_by_hex_prefix<'life0, 'life1, 'async_trait>( &'life0 self, hex_prefix: &'life1 [u8], limit: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<VertexName>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Lookup vertexes by hex prefix.

Implementations on Foreign Types§

Source§

impl PrefixLookup for Arc<dyn IdConvert + Send + Sync>

Source§

fn vertexes_by_hex_prefix<'a: 'c, 'b: 'c, 'c>( &'a self, hex_prefix: &'b [u8], limit: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<Vertex>>> + Send + 'c>>
where Self: 'c,

Implementors§

Source§

impl PrefixLookup for IdMap

Source§

impl PrefixLookup for MemIdMap

Source§

impl<I, M, P, S> PrefixLookup for AbstractNameDag<I, M, P, S>
where I: Send + Sync, M: PrefixLookup + Send + Sync, P: Send + Sync, S: Send + Sync,