TopicAdmin

Trait TopicAdmin 

Source
pub trait TopicAdmin:
    Send
    + Sync
    + 'static {
    // Required methods
    fn list_namespace_topics<'life0, 'async_trait>(
        &'life0 self,
        request: Request<NamespaceRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TopicInfoListResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_broker_topics<'life0, 'async_trait>(
        &'life0 self,
        request: Request<BrokerRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TopicInfoListResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_topic<'life0, 'async_trait>(
        &'life0 self,
        request: Request<NewTopicRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TopicResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_partitioned_topic<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PartitionedTopicRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TopicResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_topic<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TopicRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TopicResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn unload_topic<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TopicRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TopicResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_subscriptions<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TopicRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<SubscriptionListResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn unsubscribe<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SubscriptionRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<SubscriptionResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn describe_topic<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DescribeTopicRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DescribeTopicResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with TopicAdminServer.

Required Methods§

Source

fn list_namespace_topics<'life0, 'async_trait>( &'life0 self, request: Request<NamespaceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TopicInfoListResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Topic related RPCs

Source

fn list_broker_topics<'life0, 'async_trait>( &'life0 self, request: Request<BrokerRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TopicInfoListResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_topic<'life0, 'async_trait>( &'life0 self, request: Request<NewTopicRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TopicResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_partitioned_topic<'life0, 'async_trait>( &'life0 self, request: Request<PartitionedTopicRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TopicResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_topic<'life0, 'async_trait>( &'life0 self, request: Request<TopicRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TopicResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn unload_topic<'life0, 'async_trait>( &'life0 self, request: Request<TopicRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TopicResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_subscriptions<'life0, 'async_trait>( &'life0 self, request: Request<TopicRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SubscriptionListResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn unsubscribe<'life0, 'async_trait>( &'life0 self, request: Request<SubscriptionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SubscriptionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn describe_topic<'life0, 'async_trait>( &'life0 self, request: Request<DescribeTopicRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DescribeTopicResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§