pub struct ElectMasterProcessor { /* private fields */ }Expand description
Elect master processor
Implementations§
Source§impl ElectMasterProcessor
impl ElectMasterProcessor
Sourcepub fn new(metadata: Arc<MetadataStore>, raft: Arc<RaftController>) -> Self
pub fn new(metadata: Arc<MetadataStore>, raft: Arc<RaftController>) -> Self
Create a new elect master processor
Sourcepub async fn process_request(
&self,
request: ElectMasterRequest,
) -> Result<ElectMasterResponse>
pub async fn process_request( &self, request: ElectMasterRequest, ) -> Result<ElectMasterResponse>
Process elect master request
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ElectMasterProcessor
impl !RefUnwindSafe for ElectMasterProcessor
impl Send for ElectMasterProcessor
impl Sync for ElectMasterProcessor
impl Unpin for ElectMasterProcessor
impl !UnwindSafe for ElectMasterProcessor
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