Skip to main content

NamespaceAdmin

Trait NamespaceAdmin 

Source
pub trait NamespaceAdmin:
    Send
    + Sync
    + 'static {
    // Required methods
    fn get_namespace_topics<'life0, 'async_trait>(
        &'life0 self,
        request: Request<NamespaceRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TopicListResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_namespace_policies<'life0, 'async_trait>(
        &'life0 self,
        request: Request<NamespaceRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PolicyResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_namespace<'life0, 'async_trait>(
        &'life0 self,
        request: Request<NamespaceRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<NamespaceResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_namespace<'life0, 'async_trait>(
        &'life0 self,
        request: Request<NamespaceRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<NamespaceResponse>, 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 NamespaceAdminServer.

Required Methods§

Source

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

Namespace related RPCs

Source

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

Source

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

Source

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

Implementors§