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;
}