Trait GlobalStateRawProcessor

Source
pub trait GlobalStateRawProcessor: Send + Sync {
    // Required methods
    fn isolate_id(&self) -> &ObjectId;
    fn category(&self) -> GlobalStateCategory;
    fn access_mode(&self) -> GlobalStateAccessMode;
    fn get_current_root(&self) -> (ObjectId, u64);
    fn get_root_revision(&self, root: &ObjectId) -> Option<u64>;
    fn root_cache(&self) -> &ObjectMapRootCacheRef;
    fn is_dec_exists(&self, dec_id: &ObjectId) -> bool;
    fn get_dec_root_info_list<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = BuckyResult<GlobalStateRootInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_dec_root<'life0, 'life1, 'async_trait>(
        &'life0 self,
        dec_id: &'life1 ObjectId,
    ) -> Pin<Box<dyn Future<Output = BuckyResult<Option<(ObjectId, u64, ObjectId)>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_dec_root_manager<'life0, 'life1, 'async_trait>(
        &'life0 self,
        dec_id: &'life1 ObjectId,
        auto_create: bool,
    ) -> Pin<Box<dyn Future<Output = BuckyResult<ObjectMapRootManagerRef>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn isolate_id(&self) -> &ObjectId

Source

fn category(&self) -> GlobalStateCategory

Source

fn access_mode(&self) -> GlobalStateAccessMode

Source

fn get_current_root(&self) -> (ObjectId, u64)

Source

fn get_root_revision(&self, root: &ObjectId) -> Option<u64>

Source

fn root_cache(&self) -> &ObjectMapRootCacheRef

Source

fn is_dec_exists(&self, dec_id: &ObjectId) -> bool

Source

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

Source

fn get_dec_root<'life0, 'life1, 'async_trait>( &'life0 self, dec_id: &'life1 ObjectId, ) -> Pin<Box<dyn Future<Output = BuckyResult<Option<(ObjectId, u64, ObjectId)>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_dec_root_manager<'life0, 'life1, 'async_trait>( &'life0 self, dec_id: &'life1 ObjectId, auto_create: bool, ) -> Pin<Box<dyn Future<Output = BuckyResult<ObjectMapRootManagerRef>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§