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

Required Methods§

source

fn clone(&self) -> Box<dyn TrackerCache + 'static, Global>

source

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

source

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

source

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

Implementations on Foreign Types§

source§

impl TrackerCache for MemTracker

source§

fn clone(&self) -> Box<dyn TrackerCache + 'static, Global>

source§

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

source§

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

source§

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

Implementors§