Trait GlobalStateMetaRawProcessor
Source pub trait GlobalStateMetaRawProcessor: Send + Sync {
Show 17 methods
// Required methods
fn add_access<'life0, 'async_trait>(
&'life0 self,
item: GlobalStatePathAccessItem,
) -> Pin<Box<dyn Future<Output = BuckyResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remove_access<'life0, 'async_trait>(
&'life0 self,
item: GlobalStatePathAccessItem,
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<GlobalStatePathAccessItem>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn clear_access<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BuckyResult<usize>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn check_access<'d, 'a, 'b>(
&self,
req: GlobalStateAccessRequest<'d, 'a, 'b>,
) -> BuckyResult<()>;
fn add_link<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
source: &'life1 str,
target: &'life2 str,
) -> Pin<Box<dyn Future<Output = BuckyResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn remove_link<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 str,
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<GlobalStatePathLinkItem>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn clear_link<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BuckyResult<usize>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn resolve_link(&self, source: &str) -> BuckyResult<Option<String>>;
fn add_object_meta<'life0, 'async_trait>(
&'life0 self,
item: GlobalStateObjectMetaItem,
) -> Pin<Box<dyn Future<Output = BuckyResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remove_object_meta<'life0, 'async_trait>(
&'life0 self,
item: GlobalStateObjectMetaItem,
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<GlobalStateObjectMetaItem>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn clear_object_meta<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BuckyResult<usize>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn check_object_access(
&self,
target_dec_id: &ObjectId,
object_data: &dyn ObjectSelectorDataProvider,
source: &RequestSourceInfo,
permissions: AccessPermissions,
) -> BuckyResult<Option<()>>;
fn query_object_meta(
&self,
object_data: &dyn ObjectSelectorDataProvider,
) -> Option<GlobalStateObjectMetaConfigItemValue>;
fn add_path_config<'life0, 'async_trait>(
&'life0 self,
item: GlobalStatePathConfigItem,
) -> Pin<Box<dyn Future<Output = BuckyResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remove_path_config<'life0, 'async_trait>(
&'life0 self,
item: GlobalStatePathConfigItem,
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<GlobalStatePathConfigItem>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn clear_path_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BuckyResult<usize>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn query_path_config(
&self,
path: &str,
) -> Option<GlobalStatePathConfigItemValue>;
}