Skip to main content

NodeAdminService

Trait NodeAdminService 

Source
pub trait NodeAdminService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn update_config<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateConfigRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<UpdateConfigResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get_config<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetConfigRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetConfigResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn create_realm<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateRealmRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CreateRealmResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get_realm<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetRealmRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetRealmResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn update_realm<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateRealmRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<UpdateRealmResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn delete_realm<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeleteRealmRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteRealmResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn list_realms<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListRealmsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListRealmsResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get_node_info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetNodeInfoRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeInfoResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn shutdown<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ShutdownRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ShutdownResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn list_config_overrides<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListConfigOverridesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListConfigOverridesResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn set_config_override<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SetConfigOverrideRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<SetConfigOverrideResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn delete_config_override<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeleteConfigOverrideRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteConfigOverrideResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

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

Required Methods§

Source

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

———— Configuration management ————

Source

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

Source

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

———— Realm management ————

Source

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

Source

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

Source

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

Source

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

Source

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

———— Node control ————

Source

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

Source

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

———— Config override management (remote admin) ————

Source

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

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§