pub struct ClusterAdminServiceImpl { /* private fields */ }Expand description
Implementations§
Source§impl ClusterAdminServiceImpl
impl ClusterAdminServiceImpl
Sourcepub fn new(raft_node: Raft<TypeConfig>) -> Self
pub fn new(raft_node: Raft<TypeConfig>) -> Self
Creates a new instance of the API service
§Arguments
raft_node- The Raft node instance this service will use
Trait Implementations§
Source§impl ClusterAdminService for ClusterAdminServiceImpl
impl ClusterAdminService for ClusterAdminServiceImpl
Source§fn init<'life0, 'async_trait>(
&'life0 self,
request: Request<InitRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 self,
request: Request<InitRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn add_learner<'life0, 'async_trait>(
&'life0 self,
request: Request<AddLearnerRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AdminResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_learner<'life0, 'async_trait>(
&'life0 self,
request: Request<AddLearnerRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AdminResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn change_membership<'life0, 'async_trait>(
&'life0 self,
request: Request<ChangeMembershipRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AdminResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn change_membership<'life0, 'async_trait>(
&'life0 self,
request: Request<ChangeMembershipRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AdminResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for ClusterAdminServiceImpl
impl RefUnwindSafe for ClusterAdminServiceImpl
impl Send for ClusterAdminServiceImpl
impl Sync for ClusterAdminServiceImpl
impl Unpin for ClusterAdminServiceImpl
impl UnsafeUnpin for ClusterAdminServiceImpl
impl UnwindSafe for ClusterAdminServiceImpl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request