Trait GlobalStateManagerRawProcessor
Source pub trait GlobalStateManagerRawProcessor: Send + Sync {
// Required methods
fn get_isolate_list<'life0, 'async_trait>(
&'life0 self,
category: GlobalStateCategory,
) -> Pin<Box<dyn Future<Output = Vec<GlobalStateIsolateInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_global_state<'life0, 'life1, 'async_trait>(
&'life0 self,
category: GlobalStateCategory,
isolate_id: &'life1 ObjectId,
) -> Pin<Box<dyn Future<Output = Option<GlobalStateRawProcessorRef>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_global_state<'life0, 'life1, 'async_trait>(
&'life0 self,
category: GlobalStateCategory,
isolate_id: &'life1 ObjectId,
owner: Option<ObjectId>,
auto_create: bool,
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<GlobalStateRawProcessorRef>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided methods
fn get_root_state<'life0, 'life1, 'async_trait>(
&'life0 self,
isolate_id: &'life1 ObjectId,
) -> Pin<Box<dyn Future<Output = Option<GlobalStateRawProcessorRef>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_local_cache<'life0, 'life1, 'async_trait>(
&'life0 self,
isolate_id: &'life1 ObjectId,
) -> Pin<Box<dyn Future<Output = Option<GlobalStateRawProcessorRef>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn load_root_state<'life0, 'life1, 'async_trait>(
&'life0 self,
isolate_id: &'life1 ObjectId,
owner: Option<ObjectId>,
auto_create: bool,
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<GlobalStateRawProcessorRef>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn load_local_cache<'life0, 'life1, 'async_trait>(
&'life0 self,
isolate_id: &'life1 ObjectId,
owner: Option<ObjectId>,
auto_create: bool,
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<GlobalStateRawProcessorRef>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}