pub struct UnsupportedAdmin { /* private fields */ }Expand description
Admin handle for drivers without runtime membership (file, and — in this
sub-project — paxos). list_members reports a fixed view supplied at
construction; every mutating op is Unsupported.
Implementations§
Source§impl UnsupportedAdmin
impl UnsupportedAdmin
pub fn new(view: MembershipView) -> Self
Trait Implementations§
Source§impl MembershipAdmin for UnsupportedAdmin
impl MembershipAdmin for UnsupportedAdmin
fn list_members<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MembershipView, AdminError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_learner<'life0, 'async_trait>(
&'life0 self,
_member: NewMember,
) -> Pin<Box<dyn Future<Output = Result<(), AdminError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn promote<'life0, 'async_trait>(
&'life0 self,
_id: u64,
) -> Pin<Box<dyn Future<Output = Result<(), AdminError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove<'life0, 'async_trait>(
&'life0 self,
_id: u64,
) -> Pin<Box<dyn Future<Output = Result<(), AdminError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn activate_format<'life0, 'async_trait>(
&'life0 self,
_target: u8,
) -> Pin<Box<dyn Future<Output = Result<(), AdminError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn activate_format<'life0, 'async_trait>(
&'life0 self,
_target: u8,
) -> Pin<Box<dyn Future<Output = Result<(), AdminError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initiate an all-members format-version activation to
target. The
implementation runs the all-members capability gate, proposes the
bump via raft, and reports the apply-keyed outcome. Returns
Unsupported on drivers without zero-downtime format migration
(file, paxos).Source§fn report_capabilities<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CapabilityReport, AdminError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn report_capabilities<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CapabilityReport, AdminError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Report every current member’s format-version capabilities (read-only,
answerable on any node). The openraft impl gathers tolerantly — an
unreachable member is reported, not fatal. Drivers without the
format-migration surface (file, paxos) return
Unsupported.Auto Trait Implementations§
impl Freeze for UnsupportedAdmin
impl RefUnwindSafe for UnsupportedAdmin
impl Send for UnsupportedAdmin
impl Sync for UnsupportedAdmin
impl Unpin for UnsupportedAdmin
impl UnsafeUnpin for UnsupportedAdmin
impl UnwindSafe for UnsupportedAdmin
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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