pub struct DefaultCommitHandler<T>where
T: TypeConfig,{ /* private fields */ }Implementations§
Source§impl<T> DefaultCommitHandler<T>where
T: TypeConfig,
impl<T> DefaultCommitHandler<T>where
T: TypeConfig,
pub fn new( my_id: u32, my_role: i32, my_current_term: u64, deps: CommitHandlerDependencies<T>, config: Arc<RaftNodeConfig>, new_commit_rx: UnboundedReceiver<NewCommitData>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DefaultCommitHandler<T>
impl<T> RefUnwindSafe for DefaultCommitHandler<T>where
<T as TypeConfig>::SMH: RefUnwindSafe,
<T as TypeConfig>::R: RefUnwindSafe,
<T as TypeConfig>::M: RefUnwindSafe,
impl<T> Send for DefaultCommitHandler<T>
impl<T> Sync for DefaultCommitHandler<T>
impl<T> Unpin for DefaultCommitHandler<T>
impl<T> UnwindSafe for DefaultCommitHandler<T>where
<T as TypeConfig>::SMH: RefUnwindSafe,
<T as TypeConfig>::R: RefUnwindSafe,
<T as TypeConfig>::M: RefUnwindSafe,
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