pub trait DatahubClientTrait {
Show 25 methods
// Required methods
fn list_project<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = DHResult<ListProjectResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_project<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
comment: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_project<'life0, 'life1, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = DHResult<GetProjectResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_project<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
comment: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn delete_project<'life0, 'life1, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create_topic<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
create_topic_payload: &'life3 CreateTopicPayload<'_>,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn get_topic<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<GetTopicResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn list_topic<'life0, 'life1, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = DHResult<ListTopicResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_topic<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
comment: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn delete_topic<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn append_filed<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
field_name: &'life3 str,
field_type: FieldType,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn list_shard<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<ListShardResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn split_shard<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
split_key: &'life4 str,
) -> Pin<Box<dyn Future<Output = DHResult<SplitShardResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
fn merge_shard<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
adjacent_shard_id: &'life4 str,
) -> Pin<Box<dyn Future<Output = DHResult<MergeShardResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
fn get_cursor<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
cursor_type: CursorType,
parameter: i64,
) -> Pin<Box<dyn Future<Output = DHResult<QueryCursorResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn write_data<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
write_data_payload: &'life3 WriteDataPayload<'_>,
) -> Pin<Box<dyn Future<Output = DHResult<WriteDataResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn read_data<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
read_data_payload: &'life4 ReadDataPayload<'_>,
) -> Pin<Box<dyn Future<Output = DHResult<ReadDataResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
fn create_subscriptions<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
comment: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<CreateSubscriptionRes>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn get_subscription<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<GetSubscriptionRes>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn list_subscriptions<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
page_index: u32,
page_size: u32,
) -> Pin<Box<dyn Future<Output = DHResult<ListSubscriptionRes>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn delete_subscription<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn set_subscription_state<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
state: i32,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn open_subscription_session<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
shard_ids: &'life4 [&'life5 str],
) -> Pin<Box<dyn Future<Output = DHResult<SubscriptionSessionOptRes>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait;
fn get_subscription_offset<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
shard_ids: &'life4 [&'life5 str],
) -> Pin<Box<dyn Future<Output = DHResult<SubscriptionSessionOptRes>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait;
fn commit_subscription_offset<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
offset_map: &'life4 HashMap<String, SubscriptionOffset>,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
}Required Methods§
Sourcefn list_project<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = DHResult<ListProjectResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_project<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = DHResult<ListProjectResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
查询Project列表
Sourcefn create_project<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
comment: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_project<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
comment: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
创建Project
Sourcefn get_project<'life0, 'life1, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = DHResult<GetProjectResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_project<'life0, 'life1, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = DHResult<GetProjectResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
查询Project
Sourcefn update_project<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
comment: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update_project<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
comment: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
更新Project
Sourcefn delete_project<'life0, 'life1, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_project<'life0, 'life1, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
删除Project
Sourcefn create_topic<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
create_topic_payload: &'life3 CreateTopicPayload<'_>,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn create_topic<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
create_topic_payload: &'life3 CreateTopicPayload<'_>,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
创建Topic
Sourcefn get_topic<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<GetTopicResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_topic<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<GetTopicResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
查询Topic
Sourcefn list_topic<'life0, 'life1, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = DHResult<ListTopicResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_topic<'life0, 'life1, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = DHResult<ListTopicResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
查询Topic列表
Sourcefn update_topic<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
comment: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn update_topic<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
comment: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
更新Topic
Sourcefn delete_topic<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete_topic<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
删除Topic
Sourcefn append_filed<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
field_name: &'life3 str,
field_type: FieldType,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn append_filed<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
field_name: &'life3 str,
field_type: FieldType,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
新增Field
Sourcefn list_shard<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<ListShardResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_shard<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = DHResult<ListShardResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
获取Shard列表
Sourcefn split_shard<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
split_key: &'life4 str,
) -> Pin<Box<dyn Future<Output = DHResult<SplitShardResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn split_shard<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
split_key: &'life4 str,
) -> Pin<Box<dyn Future<Output = DHResult<SplitShardResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
分裂Shard
Sourcefn merge_shard<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
adjacent_shard_id: &'life4 str,
) -> Pin<Box<dyn Future<Output = DHResult<MergeShardResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn merge_shard<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
adjacent_shard_id: &'life4 str,
) -> Pin<Box<dyn Future<Output = DHResult<MergeShardResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
合并Shard
Sourcefn get_cursor<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
cursor_type: CursorType,
parameter: i64,
) -> Pin<Box<dyn Future<Output = DHResult<QueryCursorResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get_cursor<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
cursor_type: CursorType,
parameter: i64,
) -> Pin<Box<dyn Future<Output = DHResult<QueryCursorResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
查询数据Cursor
Sourcefn write_data<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
write_data_payload: &'life3 WriteDataPayload<'_>,
) -> Pin<Box<dyn Future<Output = DHResult<WriteDataResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn write_data<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
write_data_payload: &'life3 WriteDataPayload<'_>,
) -> Pin<Box<dyn Future<Output = DHResult<WriteDataResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
写入数据
Sourcefn read_data<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
read_data_payload: &'life4 ReadDataPayload<'_>,
) -> Pin<Box<dyn Future<Output = DHResult<ReadDataResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn read_data<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
shard_id: &'life3 str,
read_data_payload: &'life4 ReadDataPayload<'_>,
) -> Pin<Box<dyn Future<Output = DHResult<ReadDataResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
读取数据
Sourcefn create_subscriptions<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
comment: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<CreateSubscriptionRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn create_subscriptions<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
comment: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<CreateSubscriptionRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
创建订阅
Sourcefn get_subscription<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<GetSubscriptionRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get_subscription<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<GetSubscriptionRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
查询订阅
Sourcefn list_subscriptions<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
page_index: u32,
page_size: u32,
) -> Pin<Box<dyn Future<Output = DHResult<ListSubscriptionRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_subscriptions<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
page_index: u32,
page_size: u32,
) -> Pin<Box<dyn Future<Output = DHResult<ListSubscriptionRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
查询订阅列表
Sourcefn delete_subscription<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn delete_subscription<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
删除订阅
Sourcefn set_subscription_state<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
state: i32,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn set_subscription_state<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
state: i32,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
更新订阅状态
Sourcefn open_subscription_session<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
shard_ids: &'life4 [&'life5 str],
) -> Pin<Box<dyn Future<Output = DHResult<SubscriptionSessionOptRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn open_subscription_session<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
shard_ids: &'life4 [&'life5 str],
) -> Pin<Box<dyn Future<Output = DHResult<SubscriptionSessionOptRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
open点位session
Sourcefn get_subscription_offset<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
shard_ids: &'life4 [&'life5 str],
) -> Pin<Box<dyn Future<Output = DHResult<SubscriptionSessionOptRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn get_subscription_offset<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
shard_ids: &'life4 [&'life5 str],
) -> Pin<Box<dyn Future<Output = DHResult<SubscriptionSessionOptRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
查询点位
Sourcefn commit_subscription_offset<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
offset_map: &'life4 HashMap<String, SubscriptionOffset>,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn commit_subscription_offset<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
project_name: &'life1 str,
topic_name: &'life2 str,
sub_id: &'life3 str,
offset_map: &'life4 HashMap<String, SubscriptionOffset>,
) -> Pin<Box<dyn Future<Output = DHResult<EmptyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
提交点位