pub trait TrackerCache: Sync + Send + 'static {
    // Required methods
    fn clone(&self) -> Box<dyn TrackerCache>;
    fn add_position<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: &'life1 AddTrackerPositonRequest
    ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn remove_position<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: &'life1 RemoveTrackerPositionRequest
    ) -> Pin<Box<dyn Future<Output = BuckyResult<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_position<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: &'life1 GetTrackerPositionRequest
    ) -> Pin<Box<dyn Future<Output = BuckyResult<Vec<TrackerPositionCacheData>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn clone(&self) -> Box<dyn TrackerCache>

source

fn add_position<'life0, 'life1, 'async_trait>( &'life0 self, req: &'life1 AddTrackerPositonRequest ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn remove_position<'life0, 'life1, 'async_trait>( &'life0 self, req: &'life1 RemoveTrackerPositionRequest ) -> Pin<Box<dyn Future<Output = BuckyResult<usize>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_position<'life0, 'life1, 'async_trait>( &'life0 self, req: &'life1 GetTrackerPositionRequest ) -> Pin<Box<dyn Future<Output = BuckyResult<Vec<TrackerPositionCacheData>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§